You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
320 B
16 lines
320 B
#!/bin/sh -e
|
|
|
|
if ! [ -d venv ]; then
|
|
echo "You need to create the virtualenv first!" >&2
|
|
exit 1
|
|
fi
|
|
|
|
host="$1"
|
|
[ -x ".drone/$host-setup.sh" ] && ".drone/$host-setup.sh"
|
|
|
|
if [ "$host" = auth1 ]; then
|
|
exec sleep infinity
|
|
else
|
|
. venv/bin/activate
|
|
exec .drone/supervise.sh flask run -h 0.0.0.0 -p 9987
|
|
fi
|
|
|