forked from openhab/openhab-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thomas Dietrich <[email protected]>
- Loading branch information
1 parent
825f967
commit 91ee75d
Showing
1 changed file
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |