[Docker] Display messages for missing envvars

This commit is contained in:
Killian Kemps
2020-04-29 21:32:05 +02:00
parent e86bd1562d
commit 9d1d516b5e
2 changed files with 24 additions and 17 deletions

View File

@@ -1,17 +1,3 @@
#!/bin/sh
if [ -z "$SNIKKET_DOMAIN" ]; then
echo "Please provide SNIKKET_DOMAIN";
exit 1;
fi
if [ -z "$PROSODY_ENDPOINT" ]; then
echo "Please provide PROSODY_ENDPOINT";
exit 1;
fi
if [ -z "$SECRET_KEY" ]; then
echo "Please provide SECRET_KEY";
fi
exec hypercorn -b "0.0.0.0:8000" snikket_web:app