View raw

1 # SQLite. Versions 3.8.0 and up are supported. 2 # gem install sqlite3 3 # 4 # Ensure the SQLite 3 gem is defined in your Gemfile 5 # gem "sqlite3" 6 # 7 default: &default 8 adapter: sqlite3 9 pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> 10 timeout: 5000 11 12 development: 13 <<: *default 14 database: storage/development.sqlite3 15 16 # Warning: The database defined as "test" will be erased and 17 # re-generated from your development database when you run "rake". 18 # Do not set this db to the same as development or production. 19 test: 20 <<: *default 21 database: storage/test.sqlite3 22 23 24 # SQLite3 write its data on the local filesystem, as such it requires 25 # persistent disks. If you are deploying to a managed service, you should 26 # make sure it provides disk persistence, as many don't. 27 # 28 # Similarly, if you deploy your application as a Docker container, you must 29 # ensure the database is located in a persisted volume. 30 production: 31 <<: *default 32 # database: path/to/persistent/storage/production.sqlite3 33 database: storage/production.sqlite3 34