open-redirect/api/src/redirector

17 lines
369 B
Plaintext
Raw Normal View History

2025-01-09 20:08:13 +01:00
#!/bin/bash
if [[ $1 == "-dev" ]]; then
export ENVIRONMENT=development
export NAME=Open-redirect-dev
elif [[ $1 == "-stage" ]]; then
export ENVIRONMENT=staging
export NAME=Open-redirect-test
elif [[ $1 == "-prod" ]]; then
export ENVIRONMENT=production
export NAME=Open-redirect
fi
export PYTHONPATH=./:$PYTHONPATH
2025-01-10 13:56:11 +01:00
python3.12 -u redirector.py