1
0
Fork 0

Fix deploy

This commit is contained in:
Alex Kotov 2019-08-26 11:06:49 +05:00
parent 57d55416d5
commit ac59301f08
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 8 additions and 11 deletions

View file

@ -3,7 +3,7 @@ devise_secret_key: b5befc05ddfc36049bad568d325a2b0556f92e0701218aa3d662e96ebd2db
github_client_id: b657ae74187b2166988f
github_client_secret: 64875198becbc7b301d308fd500ad552506d19f7
postgres_password:
partynest: ae9e2e490fe21d52c767635956313563
partynest_staff: ae9e2e490fe21d52c767635956313563
partynest_public: a2f42510af9148bebf486811e52e3be3
rails_cache_redis_password: 6be482269cb7812bceda2d5f2fc5c35f
raven_dsn: https://c2135b1d5f8fb794379ee872f12ab4ea:3d96e586a0099b6fde62460c3f72415f@sentry.io/6865229

View file

@ -1,14 +1,14 @@
default: &default
adapter: postgresql
encoding: unicode
pool: <%= ENV.fetch('POSTGRES_POOL') { 5 } %>
pool: <%= ENV.fetch('POSTGRES_POOL') { 5 } %>
host: <%= ENV.fetch('POSTGRES_HOST') { 'localhost' } %>
port: <%= ENV.fetch('POSTGRES_PORT') { 5432 } %>
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest_staff' } %>
unsafe: &unsafe
<<: *default
host: <%= ENV.fetch('POSTGRES_HOST') { 'localhost' } %>
port: <%= ENV.fetch('POSTGRES_PORT') { 5432 } %>
username: <%= ENV.fetch('POSTGRES_USER') { 'partynest' } %>
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
password: <%= ENV.fetch('POSTGRES_PASSWORD') { 'password' } %>
development:
<<: *unsafe
@ -23,8 +23,5 @@ cucumber:
production:
<<: *default
host: <%= ENV['POSTGRES_HOST'] %>
port: <%= ENV['POSTGRES_PORT'] %>
database: <%= ENV['POSTGRES_DB'] %>
username: <%= ENV['POSTGRES_USER'] %>
password: <%= Rails.application.credentials.postgres_password[ENV['POSTGRES_USER']] %>
database: <%= ENV.fetch('POSTGRES_DB') { 'partynest_production' } %>
password: <%= Rails.application.credentials.postgres_password[ENV.fetch('POSTGRES_USER') { 'partynest_staff' } }] %>