Mysql2 Error while accessing rails app via nginx a

2019-09-05 21:41发布

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.enter image description here

enter image description here

1条回答
萌系小妹纸
2楼-- · 2019-09-05 22:32

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.

查看更多
登录 后发表回答