forked from CoreyMSchafer/code_snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0a5183f
commit 07ab838
Showing
3 changed files
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"SECRET_KEY": "YOUR_SECRET_KEY", | ||
"SQLALCHEMY_DATABASE_URI": "sqlite:///site.db", | ||
"EMAIL_USER": "YOUR_EMAIL", | ||
"EMAIL_PASS": "YOUR_EMAIL_PASS" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
server { | ||
listen 80; | ||
server_name YOUR_IP_OR_DOMAIN; | ||
|
||
location /static { | ||
alias /home/YOUR_USER/YOUR_PROJECT/flaskblog/static; | ||
} | ||
|
||
location / { | ||
proxy_pass http://localhost:8000; | ||
include /etc/nginx/proxy_params; | ||
proxy_redirect off; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[program:flaskblog] | ||
directory=/home/YOUR_USER/YOUR_PROJECT | ||
command=/home/YOUR_USER/YOUR_PROJECT/venv/bin/gunicorn -w 3 run:app | ||
user=YOUR_USER | ||
autostart=true | ||
autorestart=true | ||
stopasgroup=true | ||
killasgroup=true | ||
stderr_logfile=/var/log/flaskblog/flaskblog.err.log | ||
stdout_logfile=/var/log/flaskblog/flaskblog.out.log |