forked from dg/ftp-deployment
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment.sample.ini
69 lines (54 loc) · 2.05 KB
/
deployment.sample.ini
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
[my site] ; There may be more than one section
; remote FTP server
remote = ftp://user:[email protected]/directory
; you can use ftps://, sftp:// or file:// protocols (sftp requires SSH2 extension)
; do not like to specify user & password in 'remote'? Use these options:
;user = ...
;password = ...
; FTP passive mode
passiveMode = yes
; local path (optional)
local = .
; run in test-mode? (can be enabled by option -t or --test too)
test = no
; files and directories to ignore
ignore = "
/deployment.*
/log
temp/*
!temp/.htaccess
*/tests
"
; explicit list of files and directories to include (by default includes all files and directories)
include = "
/app
/app/*
/index.php
"
; is allowed to delete remote files? (defaults to yes)
allowDelete = yes
; jobs to run before uploading
; local jobs are done even if there is no need for synchronization
before[] = local: git diff-index --quiet HEAD ; ensures Git working directory is clean
before[] = local: composer install --no-dev --classmap-authoritative ; installs production vendor
before[] = local: lessc assets/combined.less assets/combined.css
before[] = http://example.com/deployment.php?before
; jobs to run after uploading and before uploaded files are renamed
afterUpload[] = http://example.com/deployment.php?afterUpload
; directories to purge after uploading
purge[] = temp/cache
; jobs to run after everything (upload, rename, delete, purge) is done
; local jobs are done even if the synchronization did not take place
after[] = remote: unzip api.zip
after[] = remote: chmod 0777 temp/cache ; change permissions
after[] = upload: config.server.neon app/config.local.neon
after[] = http://example.com/deployment.php?after
after[] = local: git reset HEAD --hard ; reverts all changes in working directory
; files to preprocess (defaults to none)
preprocess = *.js *.css
; file which contains hashes of all uploaded files (defaults to .htdeployment)
deploymentFile = .deployment
; default permissions for new files
;filePermissions = 0644
; default permissions for new directories
;dirPermissions = 0755