sintonia/jekyll.sh

26 lines
572 B
Bash
Raw Normal View History

2020-05-19 17:27:24 +02:00
# Installing Jekyll
2020-05-19 23:10:56 +02:00
# This script does not work and exists as a skeleton for
# someone to use to get Jekyll building outside of GitHub
2020-05-19 17:27:24 +02:00
echo "Installing Ruby"
2020-11-18 20:18:27 +01:00
apt-get update -y && apt-get install -y ruby-full build-essential zlib1g-dev
2020-05-19 17:27:24 +02:00
2020-05-19 23:10:56 +02:00
export GEM_HOME=".gems"
export PATH=".gems/bin:$PATH"
2020-05-19 17:27:24 +02:00
echo "Installing Jekyll"
2020-11-18 21:03:40 +01:00
# Picking different directory if installing with Vagrant
localUser=$(who am i | awk '{print $1}')
if [ $localUser == vagrant ]
then
cd /vagrant/docs
else
cd docs
fi
2020-05-19 17:27:24 +02:00
gem install jekyll bundler
# Running Jekyll
2020-11-18 21:42:22 +01:00
jekyll serve --port 8888 --host 0.0.0.0