In the same repository as run.py
, create a secret.py
in the following format:
DB_HOST = ""
DB_NAME = ""
DB_USER = ""
DB_PASS = ""
This program runs in a Linux-based Google Gloud VM. Below are the steps for how to initially configure it as well as to start it.
- Create and enter a Python virtual environment
- Install the package:
pip install git+https://github.com/athuler/UChicago-Shuttle-Tracking@main
- Upload
run.py
andsecret.py
to the VM - Create
run.sh
containing the following:
source venv/bin/activate
python3 run.py
- Exit the virtual environment
Note: run this outside of any virtual environments
screen
source run.sh
screen -d -r