I'm having trouble updating my rails app on heroku. I've gotten my app up but I tried to change my application.css file in /public/stylesheets/ but whenever I try to push to heroku, the CSS never changes. I tested these changes locally and they work just fine, I just can't figure out how to push them to heroku. I've tried pushing with git push heroku, heroku db:push, and heroku rake db:migrate but nothing works. Thanks for your help.
-
1Yea, I've done that to no avail. Still got the old stuff upgeitben– geitben2011-05-17 00:07:58 +00:00Commented May 17, 2011 at 0:07
-
Are you pushing the master branch?Robert B– Robert B2011-05-17 00:16:38 +00:00Commented May 17, 2011 at 0:16
-
Yes I am. When I do git push heroku master, it keeps returning Everything up-to-date even though everything isn't up to dategeitben– geitben2011-05-17 00:19:23 +00:00Commented May 17, 2011 at 0:19
-
2I came here looking for the solution to this problem. In my case, most of my CSS changed but not a few recent selectors. It turned out I had ran rake assets:precompile before making those changes. I ran rake assets:precompile again to include them, then committed and pushed to Heroku. Hope this helps someone.Michael– Michael2011-12-08 18:28:10 +00:00Commented Dec 8, 2011 at 18:28
Add a comment
|
5 Answers
Remember that you have to commit the changes locally before you can push them.
If you do a git status, it should be clean.
If it's not (my prediction):
git commit -am "Your commit message"
git push heroku master
1 Comment
geitben
That worked perfectly. I completely forgot about committing changes. Thanks for your help!
Reviving an old thread, but I got here having the same issue so I think it's still relevant to others. Check that the .css file is not simply cached by the browser you're testing on. By re-visiting the site in incognito mode you will be able to tell if a cached file is masking the changes.