Topic: [resolved] Asset precompile - please tell me I haven't broken my app
This is making me feel sick, I hope someone can help.
Earlier today I made some style changes, including adding a new css file to my assets/stylesheets directory. I pushed the changes to Heroku, but got 500 server error and the log indicated that my new css file was not compiled. After doing some research, I thought that I needed to precompile my assets so I ran this:
bundle exec rake assets:precompile
then did git commit and pushed to heroku again. I didn't fix the problem, so after more research I tried making a change to my production.rb file, commit and push and everything is back to working on heroku again.
Now I'm thinking it's because I failed to add an ENV = production on to the end of the rake assets:precompile that I did earlier. Looking in my public file, I can see a full assets directory in there.
Also, switching to older git branches doesn't fix the problem.
So is there a way to undo the rake assets? That's the only thing I can think of that's causing the problem.
Please tell me I can fix this!
By the way, I'm using Rails 3.2 and Ruby 1.9.
Update: I tried
$ rake assets:clean
but still having the same probems...
Last edited by Brian71 (2012-05-01 23:40:12)