2016-03-08 18:12:31 -05:00
|
|
|
## Setup a Middleware for Server
|
|
|
|
|
|
|
|
* Retrieve suggested Puma configuration
|
|
|
|
|
|
|
|
```
|
|
|
|
wget https://raw.githubusercontent.com/puma/puma/master/tools/jungle/upstart/puma-manager.conf
|
|
|
|
wget https://raw.githubusercontent.com/puma/puma/master/tools/jungle/upstart/puma.conf
|
|
|
|
```
|
|
|
|
|
|
|
|
* Update puma.conf
|
|
|
|
|
|
|
|
```
|
|
|
|
setuid app
|
|
|
|
setgid app
|
|
|
|
```
|
|
|
|
|
|
|
|
* Add configuration to bash execution
|
|
|
|
|
|
|
|
```
|
|
|
|
export SECRET_KEY_BASE="YOUR_SECRET_KEY_HERE"
|
|
|
|
```
|
|
|
|
|
|
|
|
note:
|
2016-03-08 21:32:57 -05:00
|
|
|
- Key can be generated with rake:
|
|
|
|
- bundle exec secret
|