mysql - Could not load database configuration. No such file - database.yml - OpsWorks -


I am deploying my application for the first time using Opsworks (Ubuntu 14.04) and when the migration is in progress Error getting:

There is no such file that could not load the database configuration - /srv/www/todoapp/releases/20150122121517/config/database.yml

I do not understand this error because I have /config/database.yml in my Rail App and it is being pushed properly for a bitbuck.

You can see my .gitignore file here:

  # If you ignore the temporary files generated by your text editor # or operating system, you might instead Want to add a global overview: # 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  

I believe that Amazon OopsWorks is your database.iml file to configure your production database. Custom JSON must be added.

Anyway, here your JSON should look like this. {"Deploy": {"app_short_name": {# This short name should be given by Opsworks to your app "database": {"adapter": "postgrescle", #changes if If you use "my_database_password", "password": "your_database_password"}} "my_database_password" }}

You can add it to the oopsworks stack setting.

  • Log in to your oopswer
  • your left sidebar Click stack .
  • Stack Settings button.
  • On the bottom you will see the Configuration Management section.You can configure your custom JSON

The above settings are for postgrad database configurations. You will probably need to change it after a while using mysql.

I have an Amazon Using RDS Postgrave Database It has set up. RDS also supports mysql.

Hope this helps you get one step closer to employing your app. Best wishes


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -