-
Notifications
You must be signed in to change notification settings - Fork 22k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
57 additions
and
14 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 |
---|---|---|
|
@@ -14,9 +14,10 @@ tmp | |
*.DS_STORE | ||
build/ | ||
.cache | ||
.vagrant | ||
|
||
# YARD artifacts | ||
.yardoc | ||
_yardoc | ||
doc/ | ||
.idea/ | ||
.idea/ |
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
Vagrant.configure(2) do |config| | ||
config.vm.box = "ubuntu/trusty64" | ||
config.vm.network :forwarded_port, guest: 4567, host: 4567 | ||
config.vm.provider "virtualbox" do |vb| | ||
vb.memory = "384" | ||
end | ||
|
||
config.vm.provision "bootstrap", | ||
type: "shell", | ||
inline: <<-SHELL | ||
sudo apt-get update | ||
sudo apt-get install -yq ruby ruby-dev build-essential nodejs | ||
sudo apt-get autoremove -yq | ||
gem install --no-ri --no-rdoc bundler | ||
SHELL | ||
|
||
config.vm.provision "install", | ||
type: "shell", | ||
privileged: false, | ||
inline: <<-SHELL | ||
echo "==============================================" | ||
echo "Installing app dependencies" | ||
cd /vagrant | ||
bundle install | ||
SHELL | ||
|
||
config.vm.provision "run", | ||
type: "shell", | ||
privileged: false, | ||
inline: <<-SHELL | ||
echo "==============================================" | ||
echo "Starting up middleman at http://localhost:4567" | ||
echo "If it does not come up, check the ~/middleman.log file for any error messages" | ||
cd /vagrant | ||
bundle exec middleman server --force-polling -l 1 &> ~/middleman.log & | ||
SHELL | ||
end |