Removing Jekyll from Vagrant

This commit is contained in:
Zachary Klosko 2020-11-18 16:37:35 -05:00
parent f0901b5636
commit dc57d08bd5
2 changed files with 3 additions and 18 deletions

5
Vagrantfile vendored
View File

@ -10,8 +10,6 @@ Vagrant.configure("2") do |config|
# liquidsoap input harbors for instreaming (ie. /master)
config.vm.network "forwarded_port", guest: 8001, host:8001
config.vm.network "forwarded_port", guest: 8002, host:8002
# for Jekyll serve
config.vm.network "forwarded_port", guest: 8888, host:8888
# make sure we are using nfs (doesn't work out of the box with debian)
nfsPath = "."
@ -69,9 +67,6 @@ Vagrant.configure("2") do |config|
# Provision LibreTime
config.vm.provision "install", type: "shell", inline: "cd /vagrant; ./install %s --web-port=8080" % installer_args
# Provision docs
config.vm.provision "build-site-jekyll", type: "shell", path: "./jekyll.sh"
end
end

View File

@ -1,6 +1,4 @@
# Installing Jekyll
# This script does not work and exists as a skeleton for
# someone to use to get Jekyll building outside of GitHub
#/bin/bash
echo "Installing Ruby"
apt-get update -y && apt-get install -y ruby-full build-essential zlib1g-dev
@ -10,16 +8,8 @@ export PATH=".gems/bin:$PATH"
echo "Installing Jekyll"
# 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
gem install jekyll bundler
# Running Jekyll
jekyll serve --port 8888 --host 0.0.0.0
jekyll serve