diff options
| author | Horus3 | 2015-08-01 23:24:02 +0200 |
|---|---|---|
| committer | Horus3 | 2015-08-01 23:24:02 +0200 |
| commit | f80efe5616ba247a1fff074b0876631a9bfb6f96 (patch) | |
| tree | 3a92b8b3fbccc32d3016029d0f47b061788656da /start.sh | |
| parent | db550a0edb5f21220151530f91056c4acbcc87b7 (diff) | |
| download | mandible-f80efe5616ba247a1fff074b0876631a9bfb6f96.tar.gz | |
Merges the production setup.
Diffstat (limited to 'start.sh')
| -rwxr-xr-x | start.sh | 16 |
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 |
