Reputation: 1515
I'm new to the web development scene, so sorry if my lack of knowledge bugs you
When i run my local code using rails s and testing on my own server, the front end is not the same as the local one.
My first attempt was to initially fix some snippet of code, then use git push, then git push heroku master.
I've tried deleting the app and pushing fresh new code again, and it still doesn't work
I've tried heroku restart, and no changes also
Any suggestions?
edit
pictures for clarity
top is local, bottom is heroku server
Upvotes: 1
Views: 75
Reputation: 76774
Further to @RSB
's comment, you'll probably find that your CSS is not being compiled properly
To fix this, you'll have to perform a precompile when you deploy. However, Heroku already does this, so probably won't be an issue
The best thing to do is eliminate any potential issues -
#config/environments/production.rb
- config.serve_static_assets = true
rake assets:precompile RAILS_ENV=production
git add .
git commit -a -m "CSS Test"
git push heroku master
Upvotes: 1
Reputation: 17834
Try running this command in your project folder
heroku run rake assets:precompile
Upvotes: 1