Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
development:python:django:deploy [2020/02/27 23:01] kalenpw |
development:python:django:deploy [2021/06/29 15:02] (current) kalenpw |
||
|---|---|---|---|
| Line 4: | Line 4: | ||
| - Set up virtualenv | - Set up virtualenv | ||
| - Install gunicorn '' | - Install gunicorn '' | ||
| - | - Set '' | + | - Set '' |
| + | - Set '' | ||
| - Collect static images to one directory '' | - Collect static images to one directory '' | ||
| - | - Run gunicorn '' | + | - Run gunicorn '' |
| Example Nginx config | Example Nginx config | ||
| - | <file blog.kalen.pw | + | < |
| server { | server { | ||
| server_name blog.kalen.pw; | server_name blog.kalen.pw; | ||
| Line 23: | Line 24: | ||
| proxy_pass http:// | proxy_pass http:// | ||
| } | } | ||
| - | |||
| listen 443 ssl; # managed by Certbot | listen 443 ssl; # managed by Certbot | ||
| Line 36: | Line 36: | ||
| return 301 https:// | return 301 https:// | ||
| } # managed by Certbot | } # managed by Certbot | ||
| - | |||
| server_name blog.kalen.pw; | server_name blog.kalen.pw; | ||
| Line 44: | Line 43: | ||
| </ | </ | ||
| + | ---- | ||