2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

[fix] nginx config for private files

This commit is contained in:
Anand Doshi 2015-12-10 12:30:01 +05:30
parent 6b1615c8c7
commit d02347031d
2 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,11 @@ upstream socketio-server {
try_files $uri =404;
}
location ~ ^/protected/(.*) {
internal;
try_files /{{ "$host" if dns_multitenant else site.name }}/$1 =404;
}
location /socket.io {
proxy_pass http://socketio-server;
proxy_http_version 1.1;

View File

@ -358,7 +358,7 @@ def update_requirements(bench='.'):
for app in os.listdir(apps_dir):
req_file = os.path.join(apps_dir, app, 'requirements.txt')
if os.path.exists(req_file):
exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
exec_cmd("yes w | {pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
def backup_site(site, bench='.'):
if FRAPPE_VERSION == 4: