forked from jeffutter/wordpress-hhvm-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
20 lines (17 loc) · 884 Bytes
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
cd /home/wordpress/wordpress
#if ! grep -Fxq "define( 'Object', 'OBJECT', true );" wp-includes/wp-db.php
#then
# sed -i -r "/define\(\s*'OBJECT',\s+'OBJECT',\s+true\s*\);/a define( 'Object', 'OBJECT' );" wp-includes/wp-db.php
#fi
#if ! grep -Fxq "define( 'object', 'OBJECT', true );" wp-includes/wp-db.php
#then
# sed -i -r "/define\(\s*'OBJECT',\s+'OBJECT',\s+true\s*\);/a define( 'object', 'OBJECT' );" wp-includes/wp-db.php
#fi
#sed -i -r "s/define\(\s*'OBJECT',\s+'OBJECT',\s+true\s*\);/define( 'OBJECT', 'OBJECT' );/" wp-includes/wp-db.php
mv ../wp-config.php ./
chown wordpress:wordpress wp-config.php ../production-config.php
#/usr/bin/hhvm --config /etc/hhvm/server.ini --user www-data --mode daemon &
/usr/bin/hhvm --config /etc/hhvm/server.ini --user wordpress --mode daemon &
service nginx start
tail -f /var/log/hhvm/error.log -f /var/log/nginx/error.log