added scripts to deploy online #7

Merged
mik-tf merged 1 commits from development_flow into main 2024-11-13 21:20:28 +00:00
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