Browse Source

Updated readme

pull/15/head
Stephen 1 year ago
parent
commit
a35800bf8c
2 changed files with 19 additions and 12 deletions
  1. +14
    -6
      README.md
  2. +5
    -6
      webapp.conf

+ 14
- 6
README.md View File

@ -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


+ 5
- 6
webapp.conf View File

@ -1,15 +1,14 @@
server {
listen 3000;
listen 3000;
server_name _ default_server;
client_max_body_size 100M;
root /home/app/pressr/public;
root /home/app/pressr/public;
passenger_enabled on;
passenger_user app;
passenger_enabled on;
passenger_user app;
passenger_min_instances 1;
passenger_ruby /usr/bin/ruby;
client_max_body_size 4G;
passenger_ruby /usr/bin/ruby;
}
passenger_pre_start http://localhost:3000/;

Loading…
Cancel
Save