Update Readme
This commit is contained in:
parent
1f28eaa381
commit
54fceaa4bc
|
|
@ -1,6 +1,7 @@
|
||||||
# roda-templates
|
# 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
|
## Setup
|
||||||
|
|
||||||
### Prereq installs
|
### Prereq installs
|
||||||
|
|
@ -40,6 +41,8 @@ This default to development mode. Run it in production mode with:
|
||||||
RACK_ENV=production puma
|
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
|
### 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.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue