not show GUI proper on RAILS_ENV=production server

68 Views Asked by At

on production ENV looks like this typeRAIL_ENV= testing or development server looks proper, but on production server not show proper GUI its expenses table

2

There are 2 best solutions below

0
On

If you're using heroku perhaps you could try it on heroku. First run RAILS_ENV=production rake assets:precompile then run git add . within your working folder. Commit, push and then push to heroku master. See if you still have this issue.

8
On

As per the images shared it seems that the css and styling is not working in production environment.

For it to work, following command would be used:

RAILS_ENV=production rake assets:precompile

Reload the page and check if the css and js rules are being picked or not.