2023-01-13 08:10:59 +01:00
|
|
|
#!/bin/bash
|
|
|
|
chmod +x deploy_webservice.py
|
2023-01-13 10:48:25 +01:00
|
|
|
echo "### Creating venv is probably a good idea - let's make one..."
|
|
|
|
if [ -d "web_venv" ]; then
|
|
|
|
echo " web_venv already exists, skipping creation..."
|
|
|
|
else
|
|
|
|
python3 -m venv web_venv
|
|
|
|
echo " CREATED"
|
|
|
|
fi
|
2023-01-13 08:10:59 +01:00
|
|
|
source ./web_venv/bin/activate
|
|
|
|
pip install -q hcloud
|
|
|
|
echo "############################"
|
|
|
|
echo "Let's clean everything from last run..."
|
|
|
|
echo "--------------------------------------------------------------------------"
|
|
|
|
echo " Success! I guess..."
|
|
|
|
echo "############################"
|
|
|
|
echo "Let's spawn some new machines!"
|
|
|
|
python deploy_webservice.py $1 --create
|