summaryrefslogtreecommitdiff
path: root/start.sh
blob: 80fbd832f3be197cd32bb9c03d5fbb7c2f958617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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