Skip to content

Fix release build job#42

Open
leoarnold wants to merge 1 commit into
voormedia:masterfrom
leoarnold:leoarnold/fix/release
Open

Fix release build job#42
leoarnold wants to merge 1 commit into
voormedia:masterfrom
leoarnold:leoarnold/fix/release

Conversation

@leoarnold

@leoarnold leoarnold commented Jul 1, 2022

Copy link
Copy Markdown

The CSS code for the flipflop web interface is generated
by the rake task assets:compile, hence it should not
be committed to the repository at all, because its content
depends on the actual versions of gems activated at build time.
We therefore remove it and add it to .gitignore.

Furthermore, in #40 the stylesheet file was renamed from
_flipflop.css to _flipflop.html.erb which is problematic because

  • the file is not HTML
  • the file is not a template
  • the filename in rake assets:compile was not adjusted,
    so the generated content is now ignored and instead
    the committed content is used.

We revert the renaming of the file and use render(file: ...
to insert its contents into the view, thereby fixing all issues.

@leoarnold leoarnold force-pushed the leoarnold/fix/release branch from 42e07ff to 6795de4 Compare July 1, 2022 17:05
The CSS code for the `flipflop` web interface is generated
by the rake tast `assets:compile`, hence it should not
be commited to the repository at all, because its content
depends on the actual versions of gems activated at build time.
We therefore remove it and add it to `.gitignore`.

Furthermore, in voormedia#40 the stylesheet file was renamed from
`_flipflop.css` to `_flipflop.html.erb` which is problematic because

- the file is not HTML
- the file is not a template
- the filename in `rake assets:compile` was not adjusted,
  so the generated content is now ignored and instead
  the commited content is used.

We revert the renaming of the file and use `render(file: ...`
to insert its contents into the view, thereby fixing all issues.
@leoarnold leoarnold force-pushed the leoarnold/fix/release branch from 6795de4 to 9f2c407 Compare July 1, 2022 21:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant