currentfeature/docs
Last change
on this file since 5934220 was
5934220,
checked in by Borja Lopez <borja@…>, 5 years ago
|
(#47) - Added needed config files and helper scripts for the deploy to staging
|
-
Property mode set to
100755
|
File size:
619 bytes
|
Rev | Line | |
---|
[5934220] | 1 | #!/bin/sh |
---|
| 2 | # |
---|
| 3 | # Start uwsgi, loading the config from the ini file in etc/ |
---|
| 4 | |
---|
| 5 | |
---|
| 6 | case "$1" in |
---|
| 7 | 'staging') |
---|
| 8 | uwsgi --ini etc/uwsgi_staging.ini |
---|
| 9 | echo "Started uwsgi, check var/log/uwsgi/uwsgi.log for more info" |
---|
| 10 | ;; |
---|
| 11 | 'production') |
---|
| 12 | uwsgi --ini etc/uwsgi_production.ini |
---|
| 13 | echo "Started uwsgi, check var/log/uwsgi/uwsgi.log for more info" |
---|
| 14 | ;; |
---|
| 15 | *) |
---|
| 16 | if [ $1 ]; then |
---|
| 17 | echo "[error] $1 is not a valid environment" |
---|
| 18 | else |
---|
| 19 | echo "[error] No env name provided" |
---|
| 20 | fi |
---|
| 21 | echo "Valid env names: staging production" |
---|
| 22 | exit 1 |
---|
| 23 | ;; |
---|
| 24 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.