mirror of
https://github.com/danbulant/api_docs
synced 2026-06-19 22:31:47 +00:00
Vagrant file fix for ubuntu/trusty64 (#769)
* Fix screenshot link in readme * Vagrant file fix for ubuntu/trusty64
This commit is contained in:
parent
39aaa0fca5
commit
0d586069e7
2 changed files with 15 additions and 20 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
<p align="center">Slate helps you create beautiful, intelligent, responsive API documentation.</p>
|
<p align="center">Slate helps you create beautiful, intelligent, responsive API documentation.</p>
|
||||||
|
|
||||||
<p align="center"><img src="https://dl.dropboxusercontent.com/u/95847291/github%20images/slate/slate_screenshot_new.png" width=700 alt="Screenshot of Example Documentation created with Slate"></p>
|
<p align="center"><img src="https://raw.githubusercontent.com/lord/img/master/screenshot-slate.png" width=700 alt="Screenshot of Example Documentation created with Slate"></p>
|
||||||
|
|
||||||
<p align="center"><em>The example above was created with Slate. Check it out at <a href="https://lord.github.io/slate">lord.github.io/slate</a>.</em></p>
|
<p align="center"><em>The example above was created with Slate. Check it out at <a href="https://lord.github.io/slate">lord.github.io/slate</a>.</em></p>
|
||||||
|
|
||||||
|
|
|
||||||
33
Vagrantfile
vendored
33
Vagrantfile
vendored
|
|
@ -1,28 +1,23 @@
|
||||||
Vagrant.configure(2) do |config|
|
Vagrant.configure(2) do |config|
|
||||||
config.vm.box = "debian/jessie64"
|
config.vm.box = "ubuntu/trusty64"
|
||||||
config.vm.network :forwarded_port, guest: 4567, host: 4567
|
config.vm.network :forwarded_port, guest: 4567, host: 4567
|
||||||
config.vm.synced_folder ".", "/vagrant", type: "rsync"
|
|
||||||
|
|
||||||
# Download and install ruby from sources and other tools
|
config.vm.provision "bootstrap",
|
||||||
config.vm.provision "shell",
|
type: "shell",
|
||||||
inline: <<-SHELL
|
inline: <<-SHELL
|
||||||
apt-get -yq install zlib1g-dev libssl-dev libreadline-dev libgdbm-dev openssl git libxml2-dev libxslt-dev build-essential nodejs
|
sudo apt-add-repository ppa:brightbox/ruby-ng
|
||||||
wget https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.gz
|
sudo apt-get update
|
||||||
tar xvfz ruby-2.4.0.tar.gz
|
sudo apt-get install -yq ruby2.2 ruby2.2-dev
|
||||||
cd ruby-2.4.0
|
sudo apt-get install -yq pkg-config build-essential nodejs git libxml2-dev libxslt-dev
|
||||||
./configure
|
sudo apt-get autoremove -yq
|
||||||
make
|
gem2.2 install --no-ri --no-rdoc bundler
|
||||||
make install
|
|
||||||
gem install --no-ri --no-rdoc bundler
|
|
||||||
rm -rf ruby-2.4.0.tar.gz ruby-2.4.0
|
|
||||||
apt-get autoremove -yq
|
|
||||||
SHELL
|
SHELL
|
||||||
|
|
||||||
# add the local user git config to the vm
|
# add the local user git config to the vm
|
||||||
config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig"
|
config.vm.provision "file", source: "~/.gitconfig", destination: ".gitconfig"
|
||||||
|
|
||||||
# Install project dependencies (gems)
|
config.vm.provision "install",
|
||||||
config.vm.provision "shell",
|
type: "shell",
|
||||||
privileged: false,
|
privileged: false,
|
||||||
inline: <<-SHELL
|
inline: <<-SHELL
|
||||||
echo "=============================================="
|
echo "=============================================="
|
||||||
|
|
@ -32,8 +27,8 @@ Vagrant.configure(2) do |config|
|
||||||
bundle install
|
bundle install
|
||||||
SHELL
|
SHELL
|
||||||
|
|
||||||
# Exec server
|
config.vm.provision "run",
|
||||||
config.vm.provision "shell",
|
type: "shell",
|
||||||
privileged: false,
|
privileged: false,
|
||||||
run: "always",
|
run: "always",
|
||||||
inline: <<-SHELL
|
inline: <<-SHELL
|
||||||
|
|
@ -43,4 +38,4 @@ Vagrant.configure(2) do |config|
|
||||||
cd /vagrant
|
cd /vagrant
|
||||||
bundle exec middleman server --watcher-force-polling --watcher-latency=1 &> ~/middleman.log &
|
bundle exec middleman server --watcher-force-polling --watcher-latency=1 &> ~/middleman.log &
|
||||||
SHELL
|
SHELL
|
||||||
end
|
end
|
||||||
Loading…
Reference in a new issue