File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010<% if ENV['GEMSTASH_DB_ADAPTER'] == 'mysql2' %>
1111# mysql2 adapter
1212:db_adapter: mysql2
13- :db_url: {}
13+ :db_url: <%= "mysql2://#{ENV['GEMSTASH_DB_HOST']}:#{ENV['GEMSTASH_DB_PORT']}/#{ENV['GEMSTASH_DB_DATABASE']}" %>
1414:db_connection_options:
1515 :adapter: 'mysql2'
16- :host: <%= ENV['GEMSTASH_DB_HOST'] %>
17- :port: <%= ENV['GEMSTASH_DB_PORT'] %>
18- :database: <%= ENV['GEMSTASH_DB_DATABASE'] %>
1916 :user: <%= ENV['GEMSTASH_DB_USERNAME'] %>
2017 :password: <%= ENV['GEMSTASH_DB_PASSWORD'] %>
2118 :max_connections: <%= ENV['GEMSTASH_PUMA_THREADS'].to_i + 1 %>
2421:db_adapter: postgres
2522:db_url: <%= "postgres://#{ENV['GEMSTASH_DB_HOST']}:#{ENV['GEMSTASH_DB_PORT']}/#{ENV['GEMSTASH_DB_DATABASE']}" %>
2623:db_connection_options:
24+ :adapter: 'postgres'
2725 :user: <%= ENV['GEMSTASH_DB_USERNAME'] %>
2826 :password: <%= ENV['GEMSTASH_DB_PASSWORD'] %>
2927 :max_connections: <%= ENV['GEMSTASH_PUMA_THREADS'].to_i + 1 %>
You can’t perform that action at this time.
0 commit comments