mirror of
https://github.com/simon987/task_tracker_drone.git
synced 2025-04-10 14:06:46 +00:00
18 lines
395 B
Bash
Executable File
18 lines
395 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export DRONEROOT="task_tracker_drone"
|
|
|
|
screen -S tt_drone -X quit
|
|
|
|
cd ${DRONEROOT}
|
|
virtualenv env --download --clear -p python3.7
|
|
source env/bin/activate
|
|
python --version
|
|
pip install -r requirements.txt
|
|
deactivate
|
|
|
|
echo "starting drone"
|
|
screen -S tt_drone -d -m bash -c "source env/bin/activate && python src/drone.py 'https://tt.simon987.net/api/' 'tt_drone'"
|
|
sleep 1
|
|
screen -list
|