Set sensible defaults for connecting to the database. By default, we try to connect to the `danbooru2` database running on localhost as the `danbooru` user. These are the defaults recommended by the install guide. If you need to change the database settings, set DATABASE_URL in .env.local or on the command line: # .env.local DATABASE_URL=postgresql://danbooru:password@localhost/danbooru2 # command line $ DATABASE_URL=postgresql://danbooru:password@localhost/danbooru2 bin/rails server This eliminates the need to copy script/install/database.yml.templ to config/database.yml during installation and during deployment. This is so that Danbooru works out of the box without extra configuration. In particular, this is so that we can run Danbooru in a Docker container without having to set DATABASE_URL.
25 lines
375 B
Plaintext
25 lines
375 B
Plaintext
.env.*
|
|
.eslintcache
|
|
.yarn-integrity
|
|
.gitconfig
|
|
.git/
|
|
config/danbooru_local_config.rb
|
|
config/deploy/*.rb
|
|
config/newrelic.yml
|
|
coverage/
|
|
node_modules/
|
|
log/
|
|
tmp/
|
|
public/data/
|
|
public/packs-test/
|
|
public/packs/
|
|
test/reports/
|
|
|
|
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
|
|
.yarn/*
|
|
!.yarn/patches
|
|
!.yarn/plugins
|
|
!.yarn/releases
|
|
!.yarn/sdks
|
|
!.yarn/versions
|