Skip to content

Commit

Permalink
Configure puma for production
Browse files Browse the repository at this point in the history
  • Loading branch information
leesheppard committed Sep 18, 2023
1 parent d6ad862 commit 452fa0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
web: bundle exec puma -C config/puma.rb
release: bundle exec rails db:migrate tmp:cache:clear
2 changes: 1 addition & 1 deletion config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

# Specifies the `environment` that Puma will run in.
#
environment ENV.fetch("RAILS_ENV", "development")
environment ENV.fetch("RAILS_ENV", "production")

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

0 comments on commit 452fa0e

Please sign in to comment.