-
Notifications
You must be signed in to change notification settings - Fork 11
/
clisync.yml
253 lines (209 loc) · 7.16 KB
/
clisync.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
###########################################################
# Global (applied to all server sections)
###########################################################
#
# Configuration merge order:
# 1. context configuration will override all settings
# 2. sync/deploy/share GLOBAL will override default settings
# 3. GLOBAL are the defaults
#
# EXAMPLE:
# if you ned eg. another mysql hostname just set it in the
# context:
#
# sync:
# production:
# mysql:
# hostname: 192.168.56.2
#
# All other configurations can be overwritten as well
#
# HINT:
# You can check the configuration with the "--config" option
#
LOCAL:
mysql:
docker-compose: mysql
# docker: mysql-container
# hostname: localhost
# port: 3306
# username: foo
# password: bar
GLOBAL:
## MYSQL
mysql:
# mysql connection
hostname: localhost
# MySQL predefined filter for typo3 (eg. no caching tables)
filter: typo3
# MySQL custom filter (preg_match)
#filter:
# - "/^cachingframework_.*/i"
# - "/^cf_.*/i"
# - "/^cache_.*/i"
# - "/^index_.*/i"
# - "/^sys_log$/i"
# - "/^sys_history$/i"
# - "/^tx_extbase_cache.*/i"
# Transfer compression (none if empty, bzip2 or gzip)
compression: bzip2
# specific mysqldump settings
mysqldump:
option: "--opt --skip-lock-tables --single-transaction"
## RSYNC
rsync:
# set target as sub directroy (will be appended to working directory)
workdir: "app/"
# Additional options ("-rlptD --delete-after --progress --human-readable" is already set)
# Use "--iconv=UTF8-MAC,UTF8" if you're local development machine is a macOS system
opts: " --iconv=UTF8-MAC,UTF8"
# exclude list/patterns for files and directories
exclude:
# setting GLOBAL/sync/deploy/share specific excludes could actually lead into a misbehaviour within webdevops/clitools
# Temp files
- "*~"
- "._*"
# VCS
- ".git*"
- ".svn*"
# Build files
- "composer.json"
- "bower.json"
- "gulpfile.js"
- "Gruntfile.js"
- "Makefile"
# Caches and other files
- "node_modules"
- ".sass-cache"
- ".settings"
- ".bowerrc"
- ".buildpath"
- ".project"
# Additional project specific files
- ".DS_Store"
- "bower_components"
- "*.log"
- "/web/typo3temp"
- "/web/fileadmin/_processed_"
- "/web/.well-known"
- "ENABLE_INSTALL_TOOL"
- "FIRST_INSTALL"
- "realurl_autoconf.php"
- "AdditionalConfiguration_custom.php"
- "AdditionalConfiguration_Development_Docker.php"
- "AdditionalConfiguration_Development_Mamp.php"
- "/Build"
- "/sgc-core"
## commands
command:
# Start-Tasks: shell command which should be run before run
startup:
# add some here
# Final-Tasks: shell command which should be after run
finalize:
# add some here
# EXAMPLE: local task
# - date
# EXAMPLE: remote task (will be send over ssh)
#- { type: 'remote', command: 'date' }
# EXAMPLE: create user "dev" with password "dev"
#- "ct typo3:beuser"
# EXAMPLE: append toplevel-domain .vm to all domains
#- "ct typo3:domain"
###########################################################
# Sync from server (eg. live server)
###########################################################
sync:
##################
# Global config (for sync)
##################
GLOBAL:
mysql:
## put your mysql settings here (see global conf)
rsync:
# directory list/patterns for synchronization
directory:
- "/web/fileadmin/"
- "/web/uploads/"
- "/web/typo3conf/l10n/"
# directory exclude list/patterns
exclude:
command:
finalize:
#- "ct typo3:domain -D mysql --list typo3"
#- "ct typo3:domain --list typo3"
- "echo 'http://localprojectdomain.vm/ http://localprojectdomain.vm/typo3'"
- "echo 'http://localprojectdomain.docker/ http://localprojectdomain.docker/typo3'"
#- "ct docker:cli extbase solr:updateconnections"
##################
# Context "Production/Live"
##################
production-live:
# ssh server host or name (see .ssh/config, eg for mysql/mysqldump)
ssh:
hostname: serverhostnameProductionLive
# rsync for some directories
rsync:
# server and source directory (server host or name - see .ssh/config)
path: "serverhostnameProductionLive:/var/www/website/production/live/htdocs"
#conf:
# maxSize: 20M
# minSize: 10kb
mysql:
username: typo3
password: loremipsum
#hostname:
# List of databases for synchronization
# examples:
# local:foreign
# samename
database:
- typo3:website_production_live
##################
# Context "Production/Staging"
##################
production-staging:
# ssh server host or name (see .ssh/config, eg for mysql/mysqldump)
ssh:
hostname: serverhostnameProductionStaging
# rsync for some directories
rsync:
# server and source directory (server host or name - see .ssh/config)
path: "serverhostnameProductionStaging:/var/www/website/production/staging/htdocs"
#conf:
# maxSize: 20M
# minSize: 10kb
mysql:
username: typo3
password: loremipsum
#hostname:
# List of databases for synchronization
# examples:
# local:foreign
# samename
database:
- typo3:website_production_staging
##################
# Context "Production/Dev"
##################
production-dev:
# ssh server host or name (see .ssh/config, eg for mysql/mysqldump)
ssh:
hostname: serverhostnameProductionDev
# rsync for some directories
rsync:
# server and source directory (server host or name - see .ssh/config)
path: "serverhostnameProductionDev:/var/www/website/production/dev/htdocs"
#conf:
# maxSize: 20M
# minSize: 10kb
mysql:
username: typo3
password: loremipsum
#hostname:
# List of databases for synchronization
# examples:
# local:foreign
# samename
database:
- typo3:website_production_dev