|
|
@ -28,6 +28,10 @@ Pressr is a multi-user, multi-blog website written in Ruby on Rails. Although it |
|
|
|
|
|
|
|
* Custom per-blog theming |
|
|
|
|
|
|
|
* RSS feeds |
|
|
|
|
|
|
|
* Draft posts/pages |
|
|
|
|
|
|
|
## Configuration |
|
|
|
|
|
|
|
Database settings are configured in config/database.yml. It defaults to Postgres running on localhost. |
|
|
@ -70,7 +74,7 @@ You will be able to access Pressr at http://localhost:3000 |
|
|
|
|
|
|
|
2. Create a new user |
|
|
|
|
|
|
|
`sudo useradd deploy` |
|
|
|
`sudo adduser deploy` |
|
|
|
|
|
|
|
`sudo usermod -aG sudo deploy` |
|
|
|
|
|
|
@ -152,12 +156,16 @@ Open `/etc/nginx/sites-available/default` in a text editor. Remove everything ex |
|
|
|
|
|
|
|
``` |
|
|
|
server { |
|
|
|
listen 80 default_server; |
|
|
|
listen [::]:80 default_server; |
|
|
|
passenger_enabled on; |
|
|
|
root /home/deploy/Pressr/public; |
|
|
|
|
|
|
|
listen 80 default_server; |
|
|
|
listen [::]:80 default_server; |
|
|
|
passenger_enabled on; |
|
|
|
passenger_user deploy; |
|
|
|
passenger_min_instances 1; |
|
|
|
client_max_body_size 100M; |
|
|
|
root /home/deploy/Pressr/public; |
|
|
|
} |
|
|
|
|
|
|
|
passenger_pre_start http://localhost:3000/; |
|
|
|
``` |
|
|
|
|
|
|
|
Restart Nginx |
|
|
|