How to get rails admin working on production server?
Rails_admin works on my development server with port :3000, b开发者_如何学Pythonut not working on production server, responds 404 error! How to get it working on production server ?
Thanks
Have you tried running the following?:
$ rake rails_admin:copy_assets
Spotted this little bit in the GitHub ReadMe:
When running RailsAdmin in production the images, stylesheets, and javascript assets may return 404 not found error's depending on your servers static assets configuration. To prevent this issue you can copy assets directly into your application by running:
$ rake rails_admin:copy_assets
I had to do a RAILS_ENV=production bundle exec rake db:reset
, then it worked. Don't know whether it was a user session issue (no privileges?) or something else.
Be careful though not to execute the command above if you have "real" data in your database!
精彩评论