diff --git a/config/php.conf.uploads.ini b/config/php.conf.uploads.ini new file mode 100644 index 0000000000000000000000000000000000000000..26880246919ea87cb44cd340523ed4d2a5da71b3 --- /dev/null +++ b/config/php.conf.uploads.ini @@ -0,0 +1,6 @@ +file_uploads = On +memory_limit = 500M +upload_max_filesize = 30M +post_max_size = 30M +max_execution_time = 600 + diff --git a/docker-compose.yml b/docker-compose.yml index da9d0f29f2421a65a57adbf37dfbf891594d4dff..6bb85beffc8e278346695a12b1013d10799975cb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,7 @@ services: ports: - 127.0.0.1:80:80 # change ip if required volumes: + - ./config/php.conf.uploads.ini:/usr/local/etc/php/conf.d/uploads.ini - ./wp-app:/var/www/html # Full wordpress project #- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development #- ./theme-name/trunk/:/var/www/html/wp-content/themes/theme-name # Theme development diff --git a/export.sh b/export.sh index 7d2ab97abaf3ddecfaac0c224da61fd99b0f3e1a..547f0f892a7537001399804e60170650e3caebdb 100755 --- a/export.sh +++ b/export.sh @@ -1,4 +1,9 @@ +_os="`uname`" _now=$(date +"%m_%d_%Y") _file="wp-data/data_$_now.sql" docker-compose exec db sh -c 'exec mysqldump "$MYSQL_DATABASE" -uroot -p"$MYSQL_ROOT_PASSWORD"' > $_file -sed -i 1,1d $_file # Removes the password warning from the file \ No newline at end of file +if [[ $_os == "Darwin"* ]] ; then + sed -i '.bak' 1,1d $_file +else + sed -i 1,1d $_file # Removes the password warning from the file +fi \ No newline at end of file