From f80efe5616ba247a1fff074b0876631a9bfb6f96 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Sat, 1 Aug 2015 23:24:02 +0200 Subject: Merges the production setup. --- start.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 start.sh (limited to 'start.sh') 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 -- cgit v1.2.3