Update Readme

This commit is contained in:
James 2023-12-27 00:00:36 -06:00
parent 1f28eaa381
commit 54fceaa4bc

View file

@ -1,6 +1,7 @@
# roda-templates
Install prereq: sudo apt install puma, sudo gem install roda --no-document
For the single file app template, really the only file you need is the config.ru and run it with pum.
## Setup
### Prereq installs
@ -40,6 +41,8 @@ This default to development mode. Run it in production mode with:
RACK_ENV=production puma
```
For development, just run it like that. For production, probably want to set up a systemd service.
### 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.