-
Notifications
You must be signed in to change notification settings - Fork 25
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
1 parent
ba21dc4
commit 3ce0547
Showing
3 changed files
with
40 additions
and
0 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 |
---|---|---|
|
@@ -38,3 +38,4 @@ Thumbs.db | |
|
||
node_modules | ||
.sass-cache | ||
.vagrant |
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,32 @@ | ||
# set up a Vagrantbox to run the repl | ||
# check it out at http://phpepl.dev after running 'vagrant up' | ||
|
||
Vagrant.configure("2") do |config| | ||
config.vm.box = "ubuntu/trusty64" | ||
|
||
# Remove the default Vagrant directory sync | ||
config.vm.synced_folder ".", "/vagrant", disabled: true | ||
|
||
config.vm.synced_folder "./", "/var/www/public", id: "vagrant-root", | ||
owner: "vagrant", | ||
group: "www-data", | ||
mount_options: ["dmode=775,fmode=664"] | ||
|
||
config.vm.network :private_network, ip: "192.168.56.101" | ||
config.ssh.forward_agent = true | ||
|
||
# host dns registration | ||
# you'll need "vagrant plugin install vagrant-hostsupdater" for the site name to be added to your hosts resolver file automatically | ||
config.vm.hostname = "phpepl.dev" | ||
if Vagrant.has_plugin?("vagrant-hostsupdater") | ||
config.hostsupdater.remove_on_suspend = true | ||
end | ||
|
||
config.vm.provider :virtualbox do |v| | ||
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | ||
v.customize ["modifyvm", :id, "--memory", 512] | ||
end | ||
|
||
# install apache and php | ||
config.vm.provision :shell, :path => "vagrant-bootstrap.sh" | ||
end |
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,7 @@ | ||
#!/bin/bash | ||
# simple provisioning for php and apache | ||
|
||
sudo apt-get -y install apache2 php5 | ||
# fix the docroot | ||
sudo sed -i 's/\/var\/www\/html/\/var\/www\/public/g' /etc/apache2/sites-enabled/000-default.conf | ||
sudo service apache2 restart |