整理配置文件

This commit is contained in:
xxq250 2023-05-10 17:31:57 +08:00
parent 69f8b43186
commit f07ae49246
1 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,28 @@
default: &default
adapter: mysql2
host: <%= ENV.fetch("MYSQL_HOST") { '127.0.0.1' } %>
encoding: utf8mb4
reconnect: true
pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
username: <%= ENV.fetch("MYSQL_USER") { 'root' } %>
password: <%= ENV.fetch("MYSQL_PWD") { '123456' } %>
gitea_server:
adapter: mysql2
database: <%= ENV.fetch("MYSQL_DB") { 'gitea' } %>
host: 127.0.0.1
username: <%= ENV.fetch("MYSQL_USER") { 'root' } %>
password: <%= ENV.fetch("MYSQL_PWD") { '123456' } %>
encoding: utf8
development:
<<: *default
host: 127.0.0.1
database: forge_development
test:
<<: *default
database: forge_test
production:
<<: *default
database: <%= ENV.fetch("MYSQL_DB") { 'forge_production' } %>