After each commit to repository (including private GitHub Pages repository), go to the server to execute this script, which can automatically deploy and release a Jekyll blog.
The script automatically checks and installs depending on what are there dependencies of the Jekyll prerequisite on current environment, includes RVM
, Ruby
, Nginx
.
Otherwise, it only updates, builds, deploys for routine.
curl -sSLO https://raw.githubusercontent.com/genhaiyu/jekyll-blog-routine-deploy-script/master/deploy.sh && chmod a+x deploy.sh && bash deploy.sh
If running a site on CentOS 7/8, should disable SELINUX setting in /etc/selinux/config
file.
If not, the page will give 403 Forbidden
error though you have done another way.
sudo vim /etc/selinux/config
Update SELINUX=enforcing
to SELINUX=disabled
in /etc/selinux/config
file, then reboot the system.