Last active
May 3, 2020 20:22
-
-
Save Ruin0x11/8bb97caaa3ed8dd6ca539cab1406e3b9 to your computer and use it in GitHub Desktop.
szurubooru dev config
This file contains hidden or 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
pid /tmp/nginx/nginx.pid; | |
error_log /tmp/nginx/error.log; | |
worker_processes 1; | |
daemon off; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
root /tmp/nginx/; | |
access_log /tmp/nginx/access.log; | |
client_body_temp_path /tmp/nginx/client_body/; | |
fastcgi_temp_path /tmp/nginx/fastcgi/; | |
proxy_temp_path /tmp/nginx/proxy/; | |
scgi_temp_path /tmp/nginx/scgi/; | |
uwsgi_temp_path /tmp/nginx/uwsgi/; | |
include /etc/nginx/mime.types; | |
server { | |
listen 8001; | |
location ~ ^/api$ { | |
return 302 /api/; | |
} | |
location ~ ^/api/(.*)$ { | |
if ($request_uri ~* "/api/(.*)") { # preserve PATH_INFO as-is | |
proxy_pass http://127.0.0.1:6666/$1; | |
} | |
} | |
location / { | |
root /home/hiro/build/work/szurubooru/client/public; | |
try_files $uri /index.htm; | |
} | |
} | |
} |
This file contains hidden or 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
#1/bin/bash | |
mkdir -p /tmp/nginx/ | |
gunicorn szurubooru.facade:app --reload -b 127.0.0.1:6666 & | |
nginx -p . -c nginx.dev.conf & | |
pushd ../client | |
pwd | |
npm run watch & | |
popd | |
wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment