Mysql2 Error while accessing rails app via nginx and unicorn

懵懂的女人 提交于 2019-12-11 19:10:10

问题


I have setup my production server and the rails app is deployed using capistrano 3.1 on nginx and unicorn on Ubuntu Server 12.04LTS. The app is working fine when accessed via normal rails server but whenever I try to run the server via unicorn its says that it cant access some tables in the database. Attached is the snapshot of the error and the snapshot of the database queries.


回答1:


As noted above in the comments, I cleared the database, the folders and re-ran the deployment after removing the migration extension for capistrano and everything worked just fine.



来源:https://stackoverflow.com/questions/21958491/mysql2-error-while-accessing-rails-app-via-nginx-and-unicorn

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!