Minimal working nginx support

pull/7/head
Rui Carmo 2016-04-25 10:47:22 +01:00
rodzic 54cfe0cd49
commit 16642e1117
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -18,7 +18,7 @@ From the bottom up:
- [ ] Sample Go app
- [ ] Support Go deployments
- [ ] CLI command documentation
- [ ] nginx support
- [x] nginx support - creates an nginx config file if `SERVER_NAME` is defined
- [x] Testing with pre-packaged [uWSGI][uwsgi] versions on Debian Jessie (yes, it was painful)
- [x] Support barebones binary deployments
- [x] Complete installation instructions (see `INSTALL.md`, which also has a draft of Go installation steps)

Wyświetl plik

@ -24,5 +24,5 @@ server {
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ =404;
}
include /home/piku/.piku/nginx/*.conf;
}
include /home/piku/.piku/nginx/*.conf;

Wyświetl plik

@ -172,7 +172,7 @@ def do_deploy(app, deltas={}):
if exists(join(app_path, 'requirements.txt')):
echo("-----> Python app detected.", fg='green')
deploy_python(app, deltas)
if exists(join(app_path, 'Godeps')) or len(glob(join(app_path,'*.go'))):
elif exists(join(app_path, 'Godeps')) or len(glob(join(app_path,'*.go'))):
echo("-----> Go app detected.", fg='green')
deploy_go(app, deltas)
else: