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