Skip to content

Commit

Permalink
GRN2-xx: Added port to database configuration (#1550)
Browse files Browse the repository at this point in the history
* GRN2-XX: Added port to database configuration

* GRN2-XX: Added port to database configuration
  • Loading branch information
jfederico authored May 8, 2020
1 parent 6b628d6 commit 7411eba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ production:
<<: *default
adapter: <%= ENV['DB_ADAPTER'] || 'sqlite3' %>
host: <%= ENV['DB_HOST'] %>
port: <%= ENV['DB_PORT' || '5432'] %>
database: <%= ENV['DB_NAME'] || 'db/production/production.sqlite3' %>
username: <%= ENV['DB_USERNAME'] %>
password: <%= ENV['DB_PASSWORD'] %>
8 changes: 5 additions & 3 deletions sample.env
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ SECRET_KEY_BASE=
BIGBLUEBUTTON_ENDPOINT=
BIGBLUEBUTTON_SECRET=

# The hostname that the application is accessible from.
# The hostname that the application is accessible from.
#
# Used to protect against various HTTP header attacks
# Should be in the form of "domain.com"
#
#
SAFE_HOSTS=

# Google Login Provider (optional)
Expand Down Expand Up @@ -100,7 +100,7 @@ RECAPTCHA_SITE_KEY=
RECAPTCHA_SECRET_KEY=

# To enable Google Analytics on your site, set this key to the Google Analytics Property Tracking ID
#
#
# https://analytics.google.com/analytics/web/
#
GOOGLE_ANALYTICS_TRACKING_ID=
Expand Down Expand Up @@ -231,6 +231,7 @@ HELP_URL=https://docs.bigbluebutton.org/greenlight/gl-overview.html
#
# DB_ADAPTER=postgresql
# DB_HOST=postgres.example.com
# DB_PORT=5432
# DB_NAME=greenlight_production
# DB_USERNAME=postgres
# DB_PASSWORD=password
Expand All @@ -239,6 +240,7 @@ HELP_URL=https://docs.bigbluebutton.org/greenlight/gl-overview.html
#
DB_ADAPTER=postgresql
DB_HOST=db
DB_PORT=5432
DB_NAME=greenlight_production
DB_USERNAME=postgres
DB_PASSWORD=password
Expand Down

0 comments on commit 7411eba

Please sign in to comment.