#困っていること
昨日、ローカルで開発していたrailsアプリをHerokuへデプロイしました。
Heroku環境ではまったく問題なく動いているのですが、
いざ開発の続きをしようとrails sしてローカル環境で開くとエラーが発生してしまいました。
#エラー内容
'development' database is not configured. Available: ["default", "production", "test"]
#原因(?)
エラーコードなどを調べてみるとdatabase.ymlあたりが怪しそうですが、
どこに問題があるか分かりません、、
ruby
1# SQLite version 3.x 2# gem install sqlite3 3# 4# Ensure the SQLite 3 gem is defined in your Gemfile 5# gem 'sqlite3' 6# 7default: &default 8 adapter: sqlite3 9 pool: 5 10 timeout: 5000 11 12production: 13 <<: *default 14 adapter: postgresql 15 encoding: unicode 16 pool: 5 17 18# Warning: The database defined as "test" will be erased and 19# re-generated from your development database when you run "rake". 20# Do not set this db to the same as development or production. 21test: 22 <<: *default 23 database: db/test.sqlite3 24 25production: 26 <<: *default 27 adapter: postgresql 28 encoding: unicode 29 pool: 5 30
お力をお貸しください。
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/02/12 02:46