Created
September 3, 2015 09:36
-
-
Save n1c/fe691e06fa4d3975174e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
Vagrant.configure("2") do |config| | |
# Configure The Box | |
config.vm.hostname = "homestead" | |
config.vm.box = "laravel/homestead" | |
config.vm.box_url = "https://vagrantcloud.com/laravel/homestead/version/7/provider/virtualbox.box" | |
config.vm.network :private_network, ip: "192.168.33.3" | |
config.vm.provider "virtualbox" do |vb| | |
vb.customize ["modifyvm", :id, "--memory", "1024"] | |
vb.customize ["modifyvm", :id, "--cpus", "1"] | |
vb.customize ["modifyvm", :id, "--natdnsproxy1", "on"] | |
vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
end | |
config.vm.network "forwarded_port", guest: 80, host: 8000 | |
config.vm.network "forwarded_port", guest: 3306, host: 33060 | |
config.vm.network "forwarded_port", guest: 5432, host: 54320 | |
# Configure All Of The Server Environment Variables | |
config.vm.provision "shell" do |s| | |
s.inline = "echo \"\nenv[$1] = '$2'\" >> /etc/php5/fpm/php-fpm.conf && service php5-fpm restart" | |
s.args = [ "APP_ENV", "local" ] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment