Skip to content
Snippets Groups Projects
Commit 1c47c442 authored by Harald Nezbeda's avatar Harald Nezbeda Committed by GitHub
Browse files

Merge pull request #4 from kadaliao/master

Add support for OSX, add php upload config
parents 9205984c 2ffc9c1e
Branches
Tags v1.7.2
No related merge requests found
file_uploads = On
memory_limit = 500M
upload_max_filesize = 30M
post_max_size = 30M
max_execution_time = 600
...@@ -5,6 +5,7 @@ services: ...@@ -5,6 +5,7 @@ services:
ports: ports:
- 127.0.0.1:80:80 # change ip if required - 127.0.0.1:80:80 # change ip if required
volumes: volumes:
- ./config/php.conf.uploads.ini:/usr/local/etc/php/conf.d/uploads.ini
- ./wp-app:/var/www/html # Full wordpress project - ./wp-app:/var/www/html # Full wordpress project
#- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development #- ./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 #- ./theme-name/trunk/:/var/www/html/wp-content/themes/theme-name # Theme development
......
_os="`uname`"
_now=$(date +"%m_%d_%Y") _now=$(date +"%m_%d_%Y")
_file="wp-data/data_$_now.sql" _file="wp-data/data_$_now.sql"
docker-compose exec db sh -c 'exec mysqldump "$MYSQL_DATABASE" -uroot -p"$MYSQL_ROOT_PASSWORD"' > $_file docker-compose exec db sh -c 'exec mysqldump "$MYSQL_DATABASE" -uroot -p"$MYSQL_ROOT_PASSWORD"' > $_file
if [[ $_os == "Darwin"* ]] ; then
sed -i '.bak' 1,1d $_file
else
sed -i 1,1d $_file # Removes the password warning from the file sed -i 1,1d $_file # Removes the password warning from the file
fi
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment