Skip to content

Commit 7e271d7

Browse files
committed
Vagrant
1 parent 0d9f3a1 commit 7e271d7

File tree

4 files changed

+2691
-2
lines changed

4 files changed

+2691
-2
lines changed

Vagrantfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ VAGRANTFILE_API_VERSION = "2"
22

33
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
44

5-
config.vm.box = "ubuntu/trusty32"
5+
config.vm.box = "chef/centos-6.5"
66

77
config.vm.network :forwarded_port, guest: 3306, host: 33066
88

99
config.vm.network :forwarded_port, guest: 80, host: 8081
1010

1111
config.vm.synced_folder ".", "/vagrant", mount_options: ['dmode=777','fmode=666']
1212

13-
config.vm.provision :shell, path: "bootstrap.sh"
13+
config.vm.provision :shell, path: "vagrant/bootstrap.sh"
1414

1515
end

vagrant/bootstrap.sh

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
#!/usr/bin/env bash
2+
sudo su -
3+
yum install httpd -y
4+
yum install php -y
5+
6+
mv /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf-dist
7+
cp /vagrant/vagrant/httpd.conf.default /etc/httpd/conf/httpd.conf
8+
mv /etc/php.ini /etc/php.ini-dist
9+
cp /vagrant/vagrant/php.ini.default /etc/php.ini
10+
11+
service httpd start
12+
sudo chkconfig httpd on
13+
14+
rm -rf /vagrant/app/tmp
15+
mkdir /vagrant/app/tmp
16+
mkdir /vagrant/app/tmp/cache
17+
mkdir /vagrant/app/tmp/cache/models
18+
mkdir /vagrant/app/tmp/cache/persistent
19+
mkdir /vagrant/app/tmp/logs
20+
chmod -R 777 /vagrant/app/tmp

0 commit comments

Comments
 (0)