我尝试在具有远程mysql服务器的AWS上部署我的应用程序,但在尝试操作Rails c或进行rake db时遇到此错误。这是nginx错误:
App 14089 output: Error: The application encountered the following error: 'production' database is not configured. Available: ["prodcution"] (ActiveRecord::AdapterNotSpecified)
我也尝试在Google中寻找内容,但类似的文章对我没有帮助。 Production database is not configured
我的数据库。yml:
prodcution:
adapter: mysql2
encoding: utf8
database: "mydb"
username: "mydbuser"
password: "mydbpassword"
port: 3306
host: "mydb.amazon.rds.amazonaws.com"
我做错了什么? 谢谢!
答案 0 :(得分:1)
您的database.yml文件有错字prodcution
,应该不是production
。