diff options
author | Rubén Calvo <rubencm@gmail.com> | 2017-07-12 11:03:36 +0200 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2019-05-08 21:52:25 +0200 |
commit | acab3b048d6c94731f5d453b9f78cdb42bba80ab (patch) | |
tree | e792097602423f9e1c66cb53a82dce3792ed6d84 | |
parent | a08dce82c20cc26f746b98c39b7a2cc9d088114f (diff) | |
download | forums-acab3b048d6c94731f5d453b9f78cdb42bba80ab.tar forums-acab3b048d6c94731f5d453b9f78cdb42bba80ab.tar.gz forums-acab3b048d6c94731f5d453b9f78cdb42bba80ab.tar.bz2 forums-acab3b048d6c94731f5d453b9f78cdb42bba80ab.tar.xz forums-acab3b048d6c94731f5d453b9f78cdb42bba80ab.zip |
[ticket/15269] Set development environment and enable all debugs with vagrant
PHPBB3-15269
-rwxr-xr-x | vagrant/after.sh | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/vagrant/after.sh b/vagrant/after.sh index 9526698593..1a14adc109 100755 --- a/vagrant/after.sh +++ b/vagrant/after.sh @@ -32,7 +32,16 @@ then fi # Add DEBUG mode to phpBB to remove annoying installer warnings -sed -i "$ a @define('DEBUG', true);" ${PHPBB_CONFIG} +echo "@define('DEBUG', true);" >> ${PHPBB_CONFIG} + +# Change environment to development +sed -i '/^.*PHPBB_ENVIRONMENT.*$/s/production/development/' ${PHPBB_CONFIG} + +# Display load time +sed -i '/^.*PHPBB_DISPLAY_LOAD_TIME.*$/s/\/\/[[:blank:]]*//' ${PHPBB_CONFIG} + +# Enable debug container +sed -i '/^.*DEBUG_CONTAINER.*$/s/\/\/[[:blank:]]*//' ${PHPBB_CONFIG} # Update the PHP memory limits (enough to allow phpunit tests to run) sed -i "s/memory_limit = .*/memory_limit = 1024M/" /etc/php/7.1/fpm/php.ini |