summaryrefslogtreecommitdiff
path: root/start.sh
diff options
context:
space:
mode:
Diffstat (limited to 'start.sh')
-rwxr-xr-xstart.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/start.sh b/start.sh
new file mode 100755
index 0000000..80fbd83
--- /dev/null
+++ b/start.sh
@@ -0,0 +1,16 @@
+#!/bin/bash
+# To be called from start-stop-daemon
+
+APP="mandible"
+DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
+LOG=$DIR
+
+cd "$DIR" && \
+PORT=8081 \
+IP=127.0.0.1 \
+STATIC_DIR=$DIR/static \
+IMGUR_GO_CONF=$DIR/config/conf.json \
+UPLOAD_DIR=$DIR/files \
+UPLOAD_URL=https://i.iamfabulous.de \
+ORIGIN_URL=https://images.iamfabulous.de \
+exec "$DIR/$APP" >> ${LOG}/logs/mandible/mandible.log 2 >> ${LOG}/logs/mandible/mandible.err