Merge pull request 'added scripts to deploy online' (#7) from development_flow into main

Reviewed-on: #7
This commit is contained in:
mik-tf 2024-11-13 21:20:27 +00:00
commit 7bfd9c85bb
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