-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.conf
executable file
·82 lines (72 loc) · 3.51 KB
/
deploy.conf
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
#!/usr/bin/env bash
# This is the config file that runs with deployer. Any variable marked with a
# '*' comment means its crucial to deployer working properly, use 'deployer
# config:verify' to check your configuration once you are done setting variables.
# server settings
# server ip to connect to
declare sshServer='127.0.0.1' # *
# connect to SSH server as
declare username='vagrant' # *
# ---------------------------------------------–------- #
# SSH debug settings
# set the verbositiy of the deployment process
declare verbose=0
# ---------------------------------------------–------- #
# deploy settings
# services to check for after deployment
declare services=(httpd mysqld)
# set maintenance page content here, will be used to create an index.html page when deploying and fill it
# with the content you have set below, if left empty the index.html page will not be created at all
# any content set previously will be erased if content is set
declare maintenancePageContent=''
# command to run before deployment starts, by default runs in the project directory
declare preDeployCommand=''
# command to run after deployment is done, by default runs in the project directory
declare postDeployCommand=''
# do not ask for confirmation before deployment
declare permissiveDeployment=false
# set downloads folder for deployer
declare downloadsPath='~/deployer_downloads'
# set uploads folder for deployer
declare uploadsPath='~/deployer_uploads'
# components that should be checked when deploying e.g (php=5.5 git=1.7)
declare dependencies=()
# ---------------------------------------------–------- #
# mysql server settings
# the user to connect as to mysql
declare dbUser=''
# should a password be used, usefull if you dont set a password in this file and still want mysql to prompt for password
declare usePassword='true'
# set the password for mysql db, strictly speaking this isnt recommended as there are chances of exposing your password
declare dbPassword=''
# the database name, optional
declare dbName=''
# ----------------------------------------------------- #
# app specific settings
declare editor='sublime'
# allow push to master branch
declare allowSaveToMaster=true
# project location on SSH server
declare remoteProjectLocation=''
# project repo url, if not set default origin url will be used
declare repo=''
# project web url, is used with open command
declare webURL=''
# change config file params, relative to the remote project location or absolute,
# space separated list
declare configFiles=()
# changes to make in config file specified, i.e ("string" "replace")
# i.e ("DEFINE('ROOT', __DIR__);" "DEFINE('ROOT', 'my/path');")
# escaped characters list ', ", (, ), < >, /, <,>, ;
# Note that . and * are not escaped and are valid regex expressions
# Above example can be re-written as ("DEFINE('ROOT', .*" "DEFINE('ROOT', 'my/path');")
declare config=(
"" ""
)
# log filepath for this app
declare logFiles=()
# any command to run on the local project using the deployer project:dev command, separate commands by ';' delimiter
declare devStart="git submodule init; git submodule update; cd vagrant-php55; vagrant up; vagrant ssh -c 'cd /vagrant; php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"; php composer-setup.php; php composer.phar install';"
# an alias to the command you want to set to have the tests run
declare testStart='cd vagrant-php55; vagrant ssh -c "cd /vagrant && vendor/bin/phpunit -c tests"; vagrant ssh -c "cd /vagrant && vendor/bin/behat";'
# ---------------------------------------------–------- #