Skip to content

Commit 9ad3e64

Browse files
committed
provision
1 parent 54961bc commit 9ad3e64

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.htaccess

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<IfModule mod_rewrite.c>
2+
RewriteEngine on
3+
RewriteRule ^$ app/webroot/ [L]
4+
RewriteRule (.*) app/webroot/$1 [L]
5+
</IfModule>

vagrant/bootstrap.sh

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
sudo su -
33
yum install httpd -y
44
yum install php -y
5+
yum install git -y
56

67
mv /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.conf-dist
78
cp /vagrant/vagrant/httpd.conf.default /etc/httpd/conf/httpd.conf
@@ -17,4 +18,9 @@ mkdir /vagrant/app/tmp/cache
1718
mkdir /vagrant/app/tmp/cache/models
1819
mkdir /vagrant/app/tmp/cache/persistent
1920
mkdir /vagrant/app/tmp/logs
20-
chmod -R 777 /vagrant/app/tmp
21+
chmod -R 777 /vagrant/app/tmp
22+
23+
rm -rf /vagrant/app/Model/Datasource/Waferpie.php
24+
rm -rf /home/vagrant/waferpie-cakephp-datasource/
25+
git clone https://github.com/s2way/waferpie-cakephp-datasource.git
26+
cp /home/vagrant/waferpie-cakephp-datasource/Waferpie.php /vagrant/app/Model/Datasource/Waferpie.php

vagrant/httpd.conf.default

+1
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,7 @@ NameVirtualHost *:80
998998
# server name.
999999

10001000
<VirtualHost *:80>
1001+
Options FollowSymLinks
10011002
DocumentRoot /vagrant/
10021003
AllowOverride All
10031004
</VirtualHost>

0 commit comments

Comments
 (0)