Skip to content
This repository has been archived by the owner on Jun 23, 2018. It is now read-only.

Don't use asset pipeline (doesn't work with our OBS packages) #7

Closed
wants to merge 1 commit into from

Conversation

ancorgs
Copy link
Member

@ancorgs ancorgs commented Jul 8, 2014

  • The user running the application should have permissions to write in
    the 'public/stylesheets' directory of the host application.
  • application.css (good old CSS now) is copied there during application
    startup.
  • A version number is used to emulate some of the advantages of asset pipeline
    digesting. Should be manually updated when changing application.css. We can
    change to a better solution afterward.

 * The user running the application should have permissions to write in
   the 'public/stylesheets' directory of the host application.
 * application.css (good old CSS now) is copied there during application
   startup.
 * A version number is used to emulate some of the advantages of asset pipeline
   digesting. Should be manually updated when changing application.css. We can
   change to a better solution afterward.
@coolo
Copy link
Member

coolo commented Jul 8, 2014

hmm, I don't like that as it leaves old files in that public directory. Why not copy it in the package into /srv/www/obs/api/public and package it as this? This way the old one is removed. You can also rename it to have a timestamp while packaging.

@ancorgs
Copy link
Member Author

ancorgs commented Jul 8, 2014

The initializer could also take care of deleting old versions. Just one more line of code.

@coolo
Copy link
Member

coolo commented Jul 8, 2014

it still feels so heavily against the meaning of deploying from packages. and initializers are called for many, many things

@ancorgs
Copy link
Member Author

ancorgs commented Jul 9, 2014

See #8 which offers a lighter alternative (without digest but much cleaner).

@ancorgs ancorgs closed this Jul 9, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants