summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh11
1 files changed, 6 insertions, 5 deletions
diff --git a/run.sh b/run.sh
index 35e114a..b0cf8b8 100755
--- a/run.sh
+++ b/run.sh
@@ -4,11 +4,11 @@ set -e
APP="mandible"
compile=0
-if [ "x$1" != "x" ]; then
- compile=1
-fi
+#if [ "x$1" != "x" ]; then
+# compile=1
+#fi
-if [ ! -x $APP ] || [ $compile == 1 ]; then
+if [ ! -x $APP ] || [ $compile -eq 1 ]; then
echo "Compiling $APP..."
echo
go build
@@ -23,9 +23,10 @@ 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=http://i.iamfabulous.de \
+UPLOAD_URL=https://i.iamfabulous.de \
ORIGIN_URL=https://images.iamfabulous.de \
./$APP