Skip to content

github-blog source control

License

Notifications You must be signed in to change notification settings

benIT/github-blog

 
 

Repository files navigation

benit.github.io static site

The purpose of this site is just to share technical stuffs around open-source and web technologies.

Under the hood

This site is powered by Sculpin and has been forked from sculpin/sculpin-blog-skeleton

How does it work?

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

Install

ssh:

git clone git@github.com:benIT/github-blog.git
git clone https://github.com/benIT/github-blog.git

https:

git clone git@github.com:benIT/benit.github.io.git
git clone https://github.com/benIT/benit.github.io.git
 
cd github-blog
composer install

Run sculpin's built in webserver

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 http://localhost:8000

Publish

./publish.sh "your commit message"

Run it with docker

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"

Stop docker container

docker-compose down -v

About

github-blog source control

https://benit.github.io/

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 81.3%
  • Shell 11.1%
  • PHP 5.2%
  • CSS 2.4%