The purpose of this site is just to share technical stuffs around open-source and web technologies.
This site is powered by Sculpin and has been forked from sculpin/sculpin-blog-skeleton
There as 2 repos:
- one for hosting sculpin app:
github-blog.git
- one for hosting sculpin generated html on github pages:
benit.github.io.git
And a publish script that will rsync and commit on both repos: publish.sh
ssh:
git clone [email protected]:benIT/github-blog.git
git clone https://github.com/benIT/github-blog.git
https:
git clone [email protected]:benIT/benit.github.io.git
git clone https://github.com/benIT/benit.github.io.git
cd github-blog
composer install
cd github-blog/
#### Watch for changes
php vendor/bin/sculpin generate --watch --server
#### generate prod version
vendor/bin/sculpin generate --env=prod
Checkout the generated website at https://localhost:8000
./publish.sh "your commit message"
cd ~/docker/blog/github-blog
docker-compose up -d
docker container exec github-blog sh -c "cd /github-blog/ && composer install && php vendor/bin/sculpin generate --watch --server"
git status
./publish.sh "my message"
docker-compose down -v