Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update DEPLOYMENT.md #98

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,30 @@ Change the default URL options' `:host` in `config/environments/production.rb` t
Edit `~/nginx/conf/nginx.conf` like so:

```
server {
daemon off;
worker_processes 1;

events {
worker_connections 1024;
}

http {
set_real_ip_from 127.0.0.1;
set_real_ip_from ::1;
real_ip_header X-Forwarded-For;
include mime.types;
passenger_root PASSENGER_ROOT_PATH; # passenger-config --root
default_type application/octet-stream;

server {
passenger_ruby RUBY_PATH; # which ruby
listen PORT; # Choose an open port (see instructions below)!
server_name ACCOUNT.SERVER.uberspace.de;
root /home/ACCOUNT/rails/current/public;
passenger_enabled on;

# Be sure to remove or comment the `location / { ... }` block!
}
}
```

Expand Down Expand Up @@ -182,4 +199,4 @@ Thunderbird:

## Additional information

- If you ever have to inspect server logs, they're here: `/home/ACCOUNT/nginx/logs/error.log`
- If you ever have to inspect server logs, they're here: `/home/ACCOUNT/nginx/logs/error.log`