Skip to content

Commit

Permalink
Generated master key and installed pg gem
Browse files Browse the repository at this point in the history
  • Loading branch information
RileyManda committed Oct 20, 2023
1 parent 4c8c58a commit f495503
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions bin/render-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
# exit on error
set -o errexit
2 changes: 1 addition & 1 deletion config/database.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ production:
<<: *default
database: recipe_app_production
username: recipe_app
password: <%= ENV["RECIPE_APP_DATABASE_PASSWORD"] %>
password: <%= ENV['DATABASE_URL'] %>
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# Specifies the header that your server uses for sending files.
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX

config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? || ENV['RENDER'].present?
# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local

Expand Down
3 changes: 2 additions & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

# Specifies the `pidfile` that Puma will use.
pidfile ENV.fetch("PIDFILE") { "tmp/pids/server.pid" }

workers ENV.fetch("WEB_CONCURRENCY") { 4 }
preload_app!
# Specifies the number of `workers` to boot in clustered mode.
# Workers are forked web server processes. If using threads and workers together
# the concurrency of the application would be max `threads` * `workers`.
Expand Down

0 comments on commit f495503

Please sign in to comment.