Enhance Vagrantfile to use polling

Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de>
pull/154/head
Thomas Dietrich 2016-12-11 00:28:23 +01:00 committed by Kai Kreuzer
parent 73f26ab865
commit aabd7502e8
1 changed files with 2 additions and 1 deletions

3
Vagrantfile vendored
View File

@ -5,6 +5,7 @@ sudo apt-get install -y build-essential git nodejs python-software-properties
sudo apt-add-repository -y ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install -y ruby2.2 ruby2.2-dev
sudo gem install directory_watcher
sudo gem install github-pages -V --no-ri --no-rdoc
SCRIPT
@ -15,5 +16,5 @@ Vagrant.configure("2") do |config|
config.vm.network "forwarded_port", guest: 4000, host: 4000
config.vm.synced_folder ".", "/srv/website", create: true
config.vm.provision "shell", inline: $script
config.vm.provision "shell", inline: "cd /srv/website && jekyll serve --watch --incremental --host 0.0.0.0", run: "always"
config.vm.provision "shell", inline: "cd /srv/website && jekyll serve --watch --incremental --force_polling --host 0.0.0.0", run: "always"
end