Skip to content

Commit

Permalink
Update Vagrantfile
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Dietrich <[email protected]>
  • Loading branch information
Thomas Dietrich authored and kaikreuzer committed Oct 18, 2017
1 parent 825f967 commit 91ee75d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

$script = <<SCRIPT
sudo apt-get update
sudo apt-get install -y build-essential nodejs python-software-properties
sudo apt-get install -y build-essential nodejs python-software-properties zlib1g-dev
sudo add-apt-repository -y ppa:git-core/ppa
sudo apt-add-repository -y ppa:brightbox/ruby-ng
sudo apt-get update
sudo apt-get install -y git ruby2.2 ruby2.2-dev
sudo gem install directory_watcher
sudo gem install directory_watcher bundler
sudo gem install github-pages -V --no-ri --no-rdoc
#sudo apt-get install -y maven
SCRIPT

Vagrant.configure("2") do |config|

config.vm.box = "JekyllVM"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.box = "ubuntu/trusty64"
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 --force_polling --host 0.0.0.0", run: "always"
config.vm.provision "shell", run: "always", inline: "cd /srv/website && jekyll serve --force_polling --host 0.0.0.0"
end

0 comments on commit 91ee75d

Please sign in to comment.