Fine adjustments from lots of testing.
Former-commit-id: cd98441fd45b8d14b3b757bdc21cbd64347acd4a
This commit is contained in:
parent
9fe8c70ea6
commit
962ee1a4d5
1
.gitignore
vendored
1
.gitignore
vendored
@ -81,4 +81,3 @@ brakeman.html
|
||||
/config/settings/local.rb
|
||||
/nbproject/private/
|
||||
/config/database.yml
|
||||
/config/app_config.yml
|
||||
|
20
config/app_config.yml
Normal file
20
config/app_config.yml
Normal file
@ -0,0 +1,20 @@
|
||||
default: &default
|
||||
smtp_address: ENV['SMTP_ADDRESS']
|
||||
smtp_domain: ENV['SMTP_DOMAIN']
|
||||
smtp_port: ENV['SMTP_PORT']
|
||||
smtp_user_name: ENV['SMTP_USER_NAME']
|
||||
smtp_password: ENV['SMTP_PASSWORD']
|
||||
smtp_ssl: ENV['SMTP_SSL']
|
||||
default_url: ENV['DEFAULT_URL']
|
||||
|
||||
development:
|
||||
<<: *default
|
||||
|
||||
test:
|
||||
<<: *default
|
||||
|
||||
preview:
|
||||
<<: *default
|
||||
|
||||
production:
|
||||
<<: *default
|
@ -84,6 +84,7 @@ BikeBike::Application.configure do
|
||||
address: config.app_config['smtp_address'],
|
||||
domain: config.app_config['smtp_domain'],
|
||||
port: config.app_config['smtp_port'],
|
||||
ssl: config.app_config['smtp_ssl'],
|
||||
authentication: :plain,
|
||||
enable_starttls_auto: true,
|
||||
openssl_verify_mode: 'none',
|
||||
|
@ -50,13 +50,14 @@ services:
|
||||
# Add your own environment values in .env, or use the default ones
|
||||
environment:
|
||||
- PORT=3000
|
||||
- RAILS_ENV=${RAILS_ENV:-production}
|
||||
- DATABASE_URL=${DATABASE_URL:-postgresql://bike_bike:password@db/bike_bike?encoding=unicode&pool=5}
|
||||
- RAILS_ENV=${RAILS_ENV:-production rails assets:precompile.log}
|
||||
- SMTP_ADDRESS=${SMTP_ADDRESS:-fake-smtp.bikebike.org}
|
||||
- SMTP_DOMAIN=${SMTP_DOMAIN:-bikebike.org}
|
||||
- SMTP_PORT=${SMTP_PORT:-587}
|
||||
- SMTP_USER_NAME=${SMTP_USER_NAME:-info@bikebike.org}
|
||||
- SMTP_PASSWORD=${SMTP_PASSWORD:-fake}
|
||||
- SMTP_SSL=${SMTP_SSL:-false}
|
||||
- DEFAULT_URL=${DEFAULT_URL:-bikebike.org}
|
||||
volumes:
|
||||
- bikebikebike:/app/BikeBike
|
||||
|
Loading…
x
Reference in New Issue
Block a user