forked from andrew13/laravel-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Vagrantfile
49 lines (42 loc) · 2.01 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "precise64"
config.vm.box_url = "http://files.vagrantup.com/precise64.box"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.network :forwarded_port, guest: 8000, host: 8100
config.vm.network :private_network, ip: "192.168.66.66"
config.vm.provider :virtualbox do |vb|
vb.name = "laravel-skeleton"
vb.customize ["modifyvm", :id, "--memory", "2048"]
vb.customize ["modifyvm", :id, "--ostype", "Ubuntu_64"]
end
config.vm.provision "shell", inline: <<-shell
apt-get update
apt-get install python-software-properties -y --force-yes
add-apt-repository ppa:mapnik/boost
add-apt-repository ppa:nginx/stable
wget -O - http://dl.hhvm.com/conf/hhvm.gpg.key | sudo apt-key add -
echo deb http://dl.hhvm.com/ubuntu precise main | sudo tee /etc/apt/sources.list.d/hhvm.list
apt-get update
apt-get install nginx -y --force-yes
apt-get install hhvm-nightly -y --force-yes
apt-get install screen vim -y --force-yes
debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password password pa$$'
debconf-set-selections <<< 'mysql-server-5.5 mysql-server/root_password_again password pa$$'
apt-get install mysql-server -y --force-yes
apt-get install curl -y --force-yes
curl -sS https://getcomposer.org/installer | php
sudo mv composer.phar /usr/local/bin/composer
echo "alias composer='hhvm /usr/local/bin/composer'" >> ~/.bashrc
sudo chown vagrant /etc/hhvm
sudo cp /vagrant/conf/config.hdf /etc/hhvm/my-config.hdf
sudo cp /vagrant/conf/php.ini /etc/hhvm/my-php.ini
sudo rm /etc/nginx/sites-enabled/default
sudo cp /vagrant/conf/nginx-fastcgi /etc/nginx/sites-available/nginx-fastcgi
sudo ln -s /etc/nginx/sites-available/nginx-fastcgi /etc/nginx/sites-enabled/nginx-fastcgi
sudo service nginx restart
hhvm -m daemon -c /etc/hhvm/my-php.ini -v Eval.EnableXHP=1
shell
end