jean-cloud-services/services/pelican/deploy_user.sh

25 lines
443 B
Bash
Raw Permalink Normal View History

2024-01-02 16:50:14 +00:00
#!/bin/bash
set -euo pipefail
# Update git repo
2024-10-16 09:41:44 +00:00
git_update.sh -r "${GIT_BRANCH:main}" -d "$HTTP_DIR" "$GIT_SOURCE_REPO"
2024-01-02 16:50:14 +00:00
cd "$HTTP_DIR"
rclone_ncloud_publiclink.sh
# Create and source venv
if [ ! -e venv ] ; then
virtualenv venv
fi
. venv/bin/activate
# Install dependencies
pip3 install -r requirements.txt
# Build website
make html
# Old way of doing python stuff
#podman run -v "$HTTP_DIR:/usr/local/app" docker.io/jeancloud/pelican