heroku app not being properly updated?
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.
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
pictures for clarity
top is local, bottom is heroku server
2 Solutions collect form web for “heroku app not being properly updated?”
@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.serve_static_assets = true
- local –
rake assets:precompile RAILS_ENV=production
git add .
git commit -a -m "CSS Test"
git push heroku master
Try running this command in your project folder
heroku run rake assets:precompile