From e489787f012652f18861f85af67e22970b3a6333 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 26 Nov 2021 08:26:56 +0100 Subject: [PATCH] Added executable --- src/gismo/gismo | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/gismo/gismo diff --git a/src/gismo/gismo b/src/gismo/gismo new file mode 100644 index 0000000..a083a83 --- /dev/null +++ b/src/gismo/gismo @@ -0,0 +1,21 @@ +#!/bin/bash + +cd ../ + +if [[ $1 == "-dev" ]]; then + export GISMO_ENVIRONMENT=development + export GISMO_NAME=Gismo-dev +elif [[ $1 == "-test" ]]; then + export GISMO_ENVIRONMENT=staging + export GISMO_NAME=Gismo-test +elif [[ $1 == "-server" ]]; then + export GISMO_ENVIRONMENT=production + export GISMO_NAME=Gismo +else + export GISMO_ENVIRONMENT=production + export GISMO_NAME=Gismo-prod +fi + +export PYTHONPATH=./:$PYTHONPATH + +python3.9 gismo/main.py