Skip to content

Commit

Permalink
Add another DB command, and more settings to php
Browse files Browse the repository at this point in the history
  • Loading branch information
tbsiqueira committed Mar 14, 2022
1 parent 7e61270 commit cd99528
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
Empty file.
4 changes: 4 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ services:
# PHP_FPM_GROUP: wodby
# COLUMNS: 80 # Set 80 columns for docker exec -it.
# # Read instructions at https://wodby.com/docs/stacks/php/local/#xdebug
PHP_MEMORY_LIMIT: -1
# PHP_MEMORY_LIMIT: 128M
PHP_CLI_MEMORY_LIMIT: -1
# PHP_CLI_MEMORY_LIMIT: 128M
PHP_MAX_EXECUTION_TIME: 600
PHP_MAX_INPUT_TIME: 600
PHP_MAX_FILE_UPLOADS: 128
Expand Down
3 changes: 3 additions & 0 deletions scripts/custom-shell-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,6 @@ chmod +x /usr/local/bin/unitcheck

echo -e "#!/bin/bash\nstancheck && cscheck && unitcheck" > /usr/local/bin/allcheck
chmod +x /usr/local/bin/allcheck

echo -e "#!/bin/bash\ndrush sql-drop -y && drush sql-cli < /var/www/html/docker-4-drupal-custom/_resources/database-dumps/\$1.sql && drush cr\nif [ \"\$2\" = true ] ; then\n drush updb -y && drush cr\nfi" > /usr/local/bin/importdb
chmod +x /usr/local/bin/importdb

0 comments on commit cd99528

Please sign in to comment.