Open amirci opened 10 years ago
I've got the project running on Heroku now.
However, the deployment required two awkward steps:
In the `config/environments/production.rb' file I had to force our two CSS files to precompile using:
config.assets.initialize_on_precompile = true
config.assets.precompile += %w( ideas.css welcome.css )
I also had to precompile the route-js routes into a routes.js file:
rake js:routes
This generated an app/assets/javascripts/routes.js
file which I then added to the repo and pushed to Heroku.
Is the app running in production mode? It's linking all 3 stylesheets by name in the HEAD section instead of one. And there's duplication... application has the other files inside it already.
It is running in production mode. The stylesheets are there by name due to the assets.precompile
kludge. Without that line, however, the app 500s and the heroku logs complain about a missing ideas.css
and welcome.css
.
The app should be hosted in Heroku