added scripts to deploy online

This commit is contained in:
mik-tf 2024-11-13 16:19:03 -05:00
parent 60d9d2e4ef
commit 924a1c9bb8
2 changed files with 18 additions and 0 deletions

10
build.sh Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
set -ex
script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${script_dir}"
echo "Website directory: $script_dir"
rsync -rv --delete ${script_dir}/ root@info.ourworld.tf:~/code/git.ourworld.tf/tfgrid/www_projectmycelium/

8
serve.sh Normal file
View File

@ -0,0 +1,8 @@
#!/bin/bash
cd /root/code/git.ourworld.tf/tfgrid/www_projectmycelium
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
cd poc
python server.py