Skip to content

Commit

Permalink
Modify config files for AWS
Browse files Browse the repository at this point in the history
  • Loading branch information
jleblond committed Mar 14, 2021
1 parent 3324fd1 commit 058ff0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ test:
production:
adapter: postgresql
encoding: unicode
database: mindmap_production
pool: 5
username: admin
password:
timeout: 5000
database: <%= ENV['RDS_DB_NAME'] %>
username: <%= ENV['RDS_USERNAME'] %>
password: <%= ENV['RDS_PASSWORD'] %>
host: <%= ENV['RDS_HOSTNAME'] %>
port: <%= ENV['RDS_PORT'] %>
4 changes: 2 additions & 2 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@
# Workers do not work on JRuby or Windows (both of which do not support
# processes).
#
# workers ENV.fetch("WEB_CONCURRENCY") { 2 }
workers ENV.fetch("WEB_CONCURRENCY") { 2 }

# Use the `preload_app!` method when specifying a `workers` number.
# This directive tells Puma to first boot the application and load code
# before forking the application. This takes advantage of Copy On Write
# process behavior so workers use less memory.
#
# preload_app!
preload_app!

# Allow puma to be restarted by `rails restart` command.
plugin :tmp_restart

0 comments on commit 058ff0f

Please sign in to comment.