From 10bcb49b56e4434b5df8d72bd0dd0f206123049f Mon Sep 17 00:00:00 2001 From: james Date: Fri, 1 Nov 2024 15:50:21 -0500 Subject: [PATCH] Update README.md --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8012f40..c36f07e 100644 --- a/README.md +++ b/README.md @@ -80,12 +80,18 @@ Todo In the project root directory: ``` +bundle exec puma + +# or if you did not use bundler to install puma... puma ``` This default to development mode. Run it in production mode with: ``` +RACK_ENV=production bundle exec puma + +# or if you did not install puma RACK_ENV=production puma ``` @@ -93,7 +99,7 @@ For development, just run it like that. For production, probably want to set up ### Run it with systemd in production -Copy the example myapp.service file to `/etc/systemd/system/` and edit accordingly. The example assumes a user named "myapp" with a group name "myapp", the application files are in `/opt/myapp/`, and puma is the system puma. +Copy the example myapp.service file to `/etc/systemd/system/` and edit accordingly. The example assumes a user named "myapp" with a group name "myapp", the application files are in `/opt/myapp/`, and puma is the system puma. If you installed puma with bundler, the exe will be at `/opt/myapp/vendor/bundle/ruby/3.1.0/bin/puma`. ### Notes