source: OpenWorkouts-current/bin/uwsgi_start @ e57b2df

current
Last change on this file since e57b2df was e57b2df, checked in by Borja Lopez <borja@…>, 5 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
RevLine 
[5934220]1#!/bin/sh
2#
3# Start uwsgi, loading the config from the ini file in etc/
4
5
6case "$1" in
[8ee2af5]7    'development')
8        uwsgi --ini etc/uwsgi_development.ini
9        echo "Started uwsgi, check var/log/uwsgi/uwsgi.log for more info"
10        ;;
[5934220]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
[e57b2df]25        echo "Valid env names: development staging production"
[5934220]26        exit 1
27        ;;
28esac
Note: See TracBrowser for help on using the repository browser.