【发布时间】:2015-03-21 10:27:08
【问题描述】:
我第一次使用 OpsWorks (Ubuntu 14.04) 部署我的应用程序,并且在运行迁移时出现此错误:
无法加载数据库配置。没有这样的文件 - /srv/www/todoapp/releases/20150122121517/config/database.yml
我不明白这个错误,因为我的 rails 应用程序中有一个 /config/database.yml 并且被正确推送到 bitbucket。
你可以在这里看到我的 .gitignore 文件:
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
# Ignore all logfiles and tempfiles.
/log/*.log
/tmp
【问题讨论】:
-
您使用的是 Amazon RDS 数据库吗?
-
不,我只是在使用 rails 实例
标签: mysql ruby-on-rails git ruby-on-rails-4 aws-opsworks