Added executable

This commit is contained in:
Sven Heidemann 2021-11-26 08:26:56 +01:00
parent d668d0138f
commit e489787f01

21
src/gismo/gismo Normal file
View File

@ -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