Skip to content

Commit df0288f

Browse files
author
Warren Seymour
committed
Add basic Vagrant config
0 parents commit df0288f

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.DS_Store
2+
.vagrant
3+
.idea

Vagrantfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# -*- mode: ruby -*-
2+
# vi: set ft=ruby :
3+
4+
Vagrant.configure("2") do |config|
5+
config.vm.box = "precise32"
6+
config.vm.provision :shell, :path => "_build/provision.sh"
7+
config.vm.network :forwarded_port, host: 8080, guest: 80
8+
end

_build/provision.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
3+
apt-get update
4+
apt-get install -y apache2
5+
rm -rf /var/www
6+
ln -fs /vagrant /var/www

0 commit comments

Comments
 (0)