まず、私はRails/PostgreSQLのnoobの合計です。外部のpostgresデータベースを使用してHeokuにレールをデプロイ
私はHerokuにレールアプリを導入しようとしています。私はそれを稼働させましたが、私がデプロイするたびに、Herokuは私のdatabase.yml情報を無視し、新しいデータベースを生成します。ここに私のdatabase.ymlです
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
#
default: &default
adapter: sqlite3
pool: 5
timeout: 5000
development:
# <<: *default
# database: db/development.sqlite3
adapter: postgresql
pool: 5
host: wwydh.cqqq2sesxkkq.us-east-1.rds.amazonaws.com
timeout: 5000
username: wwydh_a_team
password: really cool password
database: wwydh
host: wwydh.cqqq2sesxkkq.us-east-1.rds.amazonaws.com
port: 5432
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: db/test.sqlite3
私は間違っていますか?
ありがとうございました!私が最初のコマンドを実行したとき(括弧の有無にかかわらず)、DATABASE_URL:postgress:// wwydh_a_team:[email protected]:5432/wwydhが無効です。 FOO = barの形式でなければなりません。 –
アップデート、DATABASE_URL:postgresをDATABASE_URL = postgresに変更し、コマンドを実行しましたが、「添付ファイルの値を上書きできません」というエラーメッセージが表示されます。 –
申し訳ありません:: '私は答えを更新します –