You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blog/docker/docker-init.sh

20 lines
374 B
Bash

3 years ago
#!/bin/bash
1 year ago
#export POETRY_HOME=/opt/poetry
2 years ago
3 years ago
# clone and build blog
cd /
rm -rf /blog
git clone https://github.com/kianby/blog.git
cd /blog
1 year ago
#$POETRY_HOME/bin/poetry install
#$POETRY_HOME/bin/poetry run make
poetry install
poetry run make
3 years ago
# nginx serve
#nginx -g 'daemon off;'
nginx
# exit on change in stacosys or Git repo
2 years ago
$POETRY_HOME/bin/poetry run python3 monitor.py