diff --git a/config/database.yml b/config/database.yml index d74cba5..37db827 100644 --- a/config/database.yml +++ b/config/database.yml @@ -81,5 +81,4 @@ test: # production: <<: *default - database: railsondocker_production url: <%= ENV['DATABASE_URL'] %> diff --git a/config/puma.rb b/config/puma.rb index 1713441..c990fa9 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -32,14 +32,14 @@ pidfile ENV.fetch('PIDFILE', 'tmp/pids/server.pid') # 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") { 4 } # 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 `bin/rails restart` command. plugin :tmp_restart diff --git a/render.yaml b/render.yaml index a0bfb37..3a6d8f9 100644 --- a/render.yaml +++ b/render.yaml @@ -1,3 +1,8 @@ +databases: + - name: mysite + databaseName: mysite + user: mysite + services: - type: web name: rails7-on-docker