Merge pull request #4870 from rubencm/ticket/15269

[ticket/15269] Set development environment and enable all debugs when installing with vagrant

* github.com:phpbb/phpbb:
  [ticket/15269] Don't enable DEBUG_CONTAINER by default
  [ticket/15269] Remove comment only if is the beginning of a line
  [ticket/15269] Set development environment and enable all debugs with vagrant
This commit is contained in:
Tristan Darricau 2017-07-18 10:22:59 +02:00
commit 60efaef3cb
No known key found for this signature in database
GPG key ID: 817043C2E29DB881

View file

@ -32,7 +32,13 @@ 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}
# 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