summaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
authorHorus32015-08-01 23:24:02 +0200
committerHorus32015-08-01 23:24:02 +0200
commitf80efe5616ba247a1fff074b0876631a9bfb6f96 (patch)
tree3a92b8b3fbccc32d3016029d0f47b061788656da /run.sh
parentdb550a0edb5f21220151530f91056c4acbcc87b7 (diff)
downloadmandible-f80efe5616ba247a1fff074b0876631a9bfb6f96.tar.gz
Merges the production setup.
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