wyattjmiller.com/build-prod.sh

20 lines
385 B
Bash
Raw Normal View History

2019-01-11 17:33:02 -06:00
# 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