jdstore
出现报错
Cannot load `Rails.application.database_configuration`: Could not load database configuration. No such file - ["config/database.yml"]
解决方法
解决办法
https://www.jianshu.com/p/95c15df4e4d9
运行命令,生成文件 config/database.yml
touch config/database.yml
贴进去
# SQLite version 3.x# gem install sqlite3## Ensure the SQLite 3 gem is defined in your Gemfile# gem 'sqlite3'#default:&defaultadapter:sqlite3 pool:5timeout:5000development:<<:*defaultdatabase:db/development.sqlite3# 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:<<:*defaultdatabase:db/test.sqlite3production:<<:*defaultdatabase:db/production.sqlite3
然后重启rails s
---------------
# 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
# 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
production:
<<: *default
database: db/production.sqlite3