mirror of
https://github.com/danbulant/api_docs
synced 2026-06-20 23:01:35 +00:00
Update Vagrant to work properly
This commit is contained in:
parent
7f1d6da6dc
commit
1d108d0f40
1 changed files with 4 additions and 2 deletions
6
Vagrantfile
vendored
6
Vagrantfile
vendored
|
|
@ -6,9 +6,9 @@ Vagrant.configure(2) do |config|
|
||||||
type: "shell",
|
type: "shell",
|
||||||
inline: <<-SHELL
|
inline: <<-SHELL
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -yq ruby ruby-dev build-essential nodejs git
|
sudo apt-get install -yq ruby2.0 ruby2.0-dev pkg-config build-essential nodejs git libxml2-dev libxslt-dev
|
||||||
sudo apt-get autoremove -yq
|
sudo apt-get autoremove -yq
|
||||||
gem install --no-ri --no-rdoc bundler
|
gem2.0 install --no-ri --no-rdoc bundler
|
||||||
SHELL
|
SHELL
|
||||||
|
|
||||||
# add the local user git config to the vm
|
# add the local user git config to the vm
|
||||||
|
|
@ -21,12 +21,14 @@ Vagrant.configure(2) do |config|
|
||||||
echo "=============================================="
|
echo "=============================================="
|
||||||
echo "Installing app dependencies"
|
echo "Installing app dependencies"
|
||||||
cd /vagrant
|
cd /vagrant
|
||||||
|
bundle config build.nokogiri --use-system-libraries
|
||||||
bundle install
|
bundle install
|
||||||
SHELL
|
SHELL
|
||||||
|
|
||||||
config.vm.provision "run",
|
config.vm.provision "run",
|
||||||
type: "shell",
|
type: "shell",
|
||||||
privileged: false,
|
privileged: false,
|
||||||
|
run: "always",
|
||||||
inline: <<-SHELL
|
inline: <<-SHELL
|
||||||
echo "=============================================="
|
echo "=============================================="
|
||||||
echo "Starting up middleman at http://localhost:4567"
|
echo "Starting up middleman at http://localhost:4567"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue