mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15269] Set development environment and enable all debugs with vagrant
PHPBB3-15269
This commit is contained in:
parent
5e24508280
commit
f9a5787fc9
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue