wyattjmiller.com/build-prod.sh
2019-01-11 18:33:02 -05:00

20 lines
385 B
Bash

# Script written by Wyatt J. Miller
# Licensed by the MIT
# Very generic build script for my website
# Used in production ONLY!
#
# Must be used in the site's root directory
# TODO: Cron job?
cd ..
docker-compose down
docker image rm -f wyattjmiller.com
cd mywebsite
git pull
cd src/blog
jekyll build
cd ../..
docker build -t wyattjmiller.com .
cd ..
docker-compose up -d
cd mywebiste