From 924a1c9bb82a411a4b7d1af26dfc56aa825e72e5 Mon Sep 17 00:00:00 2001 From: mik-tf Date: Wed, 13 Nov 2024 16:19:03 -0500 Subject: [PATCH] added scripts to deploy online --- build.sh | 10 ++++++++++ serve.sh | 8 ++++++++ 2 files changed, 18 insertions(+) create mode 100644 build.sh create mode 100644 serve.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..6ac62ce --- /dev/null +++ b/build.sh @@ -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/ \ No newline at end of file diff --git a/serve.sh b/serve.sh new file mode 100644 index 0000000..ab9ebc0 --- /dev/null +++ b/serve.sh @@ -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 \ No newline at end of file