blob: b0cf8b811783d883ed79e75bfd29ea2556725599 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/sh
set -e
APP="mandible"
compile=0
#if [ "x$1" != "x" ]; then
# compile=1
#fi
if [ ! -x $APP ] || [ $compile -eq 1 ]; then
echo "Compiling $APP..."
echo
go build
fi
if pgrep $APP > /dev/null; then
echo "Killing running instance of $APP..."
echo
pkill $APP
fi
echo "Running $APP..."
export PORT=8087
export IP=127.0.0.1
STATIC_DIR=$(pwd)/static \
IMGUR_GO_CONF=$(pwd)/config/conf.json \
UPLOAD_DIR=$(pwd)/files \
UPLOAD_URL=https://i.iamfabulous.de \
ORIGIN_URL=https://images.iamfabulous.de \
./$APP
|