Skip to content

Commit d60b6bf

Browse files
committed
Improve Movefile
Related #7
1 parent d927216 commit d60b6bf

File tree

2 files changed

+96
-1
lines changed

2 files changed

+96
-1
lines changed

configs/wordmove/movefile.yml

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
global:
2+
sql_adapter: default
3+
4+
local:
5+
vhost: http://localhost
6+
wordpress_path: /www/ # use an absolute path here -- DONT CHANGE --
7+
8+
database:
9+
name: DB_NAME_LOCAL
10+
user: DB_USERNAME_LOCAL
11+
password: "DB_PASSWORD_LOCAL" # could be blank, so always use quotes around
12+
host: mariadb # -- DONT CHANGE --
13+
14+
production:
15+
vhost: http://YOUR_DOMAIN
16+
wordpress_path: YOUR_CUSTOM_PATH/www/wp_files/ # use an absolute path here. SHOULD ALWAYS ENDS WITH '/www/wp_files/'
17+
18+
database:
19+
name: DB_NAME_PROD
20+
user: DB_USERNAME_PROD
21+
password: "DB_PASSWORD_PROD" # could be blank, so always use quotes around
22+
host: 127.0.0.1 # -- DONT CHANGE --
23+
port: "3306" # -- DONT CHANGE --
24+
# mysqldump_options: --max_allowed_packet=1G # Only available if using SSH
25+
26+
exclude:
27+
- '.git/'
28+
- '.gitignore'
29+
- '.sass-cache/'
30+
- 'node_modules/'
31+
- 'bin/'
32+
- 'tmp/*'
33+
- 'Gemfile*'
34+
- 'Movefile'
35+
- 'movefile'
36+
- 'movefile.yml'
37+
- 'movefile.yaml'
38+
- 'wp-config.php'
39+
- 'wp-content/*.sql.gz'
40+
- '*.orig'
41+
42+
# paths: # you can customize wordpress internal paths
43+
# wp_content: wp-content
44+
# uploads: wp-content/uploads
45+
# plugins: wp-content/plugins
46+
# mu_plugins: wp-content/mu-plugins
47+
# themes: wp-content/themes
48+
# languages: wp-content/languages
49+
50+
ssh:
51+
host: YOUR_DOMAIN
52+
user: SSH_USER
53+
# password: SSH_PASSWORD # password is optional, will use public keys if available.
54+
# port: 22 # Port is optional
55+
# rsync_options: --verbose --itemize-changes# Additional rsync options, optional
56+
# gateway: # Gateway is optional
57+
# host: host
58+
# user: user
59+
# password: password # password is optional, will use public keys if available.
60+
61+
# ftp:
62+
# user: user
63+
# password: password
64+
# host: host
65+
# passive: true
66+
# scheme: ftps # default ftp
67+
68+
# hooks: # Remote hooks won't work with FTP
69+
# push:
70+
# before:
71+
# local:
72+
# - 'echo "Do something locally before push"'
73+
# remote:
74+
# - 'echo "Do something remotely before push"'
75+
# after:
76+
# local:
77+
# - 'echo "Do something locally after push"'
78+
# remote:
79+
# - 'echo "Do something remotely after push"'
80+
# pull:
81+
# before:
82+
# local:
83+
# - 'echo "Do something locally before pull"'
84+
# remote:
85+
# - 'echo "Do something remotely before pull"'
86+
# after:
87+
# local:
88+
# - 'echo "Do something locally after pull"'
89+
# remote:
90+
# - 'echo "Do something remotely after pull"'
91+
92+
# staging: # multiple environments can be specified
93+
# [...]

docker-compose.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ services:
5656
volumes:
5757
- ./www/wp_files/:/www
5858
# Movefile
59-
- ./configs/wordmove/:/home/:ro
59+
- ./configs/wordmove/:/home/
60+
# For ssh
6061
- ${HOME}/.ssh/:/root/.ssh:ro
62+
- /etc/passwd:/etc/passwd:ro
6163
links:
6264
- mariadb

0 commit comments

Comments
 (0)