nightr/server/activate.sh

19 lines
336 B
Bash
Raw Normal View History

2019-04-05 19:49:50 +00:00
[ -d venv ]
FIRST_RUN=$?
# Create and enter virtual environment
if (( $FIRST_RUN )); then
echo Creating virtual environment
2019-04-06 12:35:48 +00:00
python3.7 -m venv venv
2019-04-05 19:49:50 +00:00
fi
source venv/bin/activate
# Install required python packages
2019-04-06 12:35:48 +00:00
echo Installing required Python packages
pip install -Ur requirements.txt
2019-04-05 20:08:41 +00:00
2019-04-06 12:40:49 +00:00
2019-04-05 20:08:41 +00:00
function run() {
2019-04-05 23:16:02 +00:00
python -m nightr
}