在开发模式下,我如何在服务器上解决这个问题?
未配置开发数据库。可用:"default", "development", "test", "production"
database.yml
default: &default
adapter: sqlite3
pool: 5
timeout: 5000
development:
<<: *default
database: db/development.sqlite3
test:
<<: *default
database: db/test.sqlite3
production:
<<: *default
database: db/production.sqlite3发布于 2015-06-01 10:37:51
尝试将此作为您的database.yml:
# SQLite version 3.x
# gem install sqlite3
#
# Ensure the SQLite 3 gem is defined in your Gemfile
# gem 'sqlite3'
development:
adapter: sqlite3
database: db/development.sqlite3
pool: 5
timeout: 5000
# 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:
adapter: sqlite3
database: db/test.sqlite3
pool: 5
timeout: 5000
production:
adapter: sqlite3
database: db/production.sqlite3
pool: 5
timeout: 5000发布于 2015-06-01 10:26:36
您正在键入单词developement,而不是development。(在e和p之间没有额外的m)。
https://stackoverflow.com/questions/30570717
复制相似问题