- Swap out box name: ruby | php | wordpress
- Edit IP address, will auto-correct port usage
- Modify synced_folder if not current dir ('./').
Created
July 9, 2013 14:40
-
-
Save apisandipas/5957868 to your computer and use it in GitHub Desktop.
Base Vagrantfile.
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "php" | |
# Create a private network, which allows host-only access to the machine | |
# using a specific IP. | |
config.vm.network :private_network, ip: "192.168.11.11", auto_correct: true | |
# Make VM available as another physical device in the network | |
# config.vm.network :public_network | |
config.vm.provider :virtualbox do |vb| | |
# Set VM memory limit (1GB) | |
vb.customize ["modifyvm", :id, "--memory", "1024"] | |
# Allow symlinks creation | |
vb.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"] | |
end | |
# Share your working directory with VM | |
config.vm.synced_folder "./", "/home/apps/www/current", { owner: "apps", group: "apps" } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment