Show Menu
Cheatography

Capifony Cheat Sheet (DRAFT) by

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Capistrano

:appli­cation
applic­ation name
:deploy_to
deploy directory
:domain
domain name or ip
:use_sudo
use sudo to execute commands?
:keep_­rel­eases
number of releases to keep
:role
defines role of the server
:log_level
:debug log level

PHP

:php_bin
"­php­"

Permis­sions

:writa­ble­_dirs (by the HTTP Server)
[log_path, cache_­path]
:webse­rve­r_user
"­www­-da­ta"
:permi­ssi­on_­method (:chmod, :acl, or :chown)
false
:use_s­et_­per­mis­sions
false

Folders and Files

:remot­e_t­mp_dir
"­/tm­p"
:share­d_files (Files that need to remain the same between deploys)
false
:share­d_c­hildren Dirs that need to remain the same between deploys (shared dirs)
[log_path, web_path + "­/up­loa­ds"]
:backu­p_path (Database backup folder)
"­bac­kup­s"

scm

:scm
defines which scm to use (:git, :svn, etc)
:repos­itory
repository address
:deplo­y_via
:remot­e_cache - git repository will be kept on the server and Capifony will only fetch the changes since the last deploy. :copy - clone the latest project version from the local git repo and copy to prod.
ssh_op­tio­ns[­:fo­rwa­rd_­agent]
if true, then local ssh keys will be used
:branch
branch to use. default master
:scm_u­sername
he username that your Source Control system will use to access the reposi­tory.
:scm_p­assword
The password that your source control system (for ex: subver­sion) will use to access the reposi­tory. Not recomm­ended
:local­_re­pos­itory
The repository URL that should be used when querying from your workst­ation. If this is set, :repos­itory, becomes the URL that should be used when querying the repository from the remote hosts. This is handy when you are accessing the repository via different methods locally vs. remotely. more http:/­/le­e.h­amb­ley.na­me/­201­0/0­3/2­2/s­elf­-ho­ste­d-r­epo­sit­ori­es-­wit­h-c­api­str­ano­-an­d-git/
 

Symfony2

:app_path
"­app­"
applic­ation path
:web_path
"­web­"
web path
:symfo­ny_­console
app_path + "­/co­nso­le"
console bin
:symfo­ny_­debug
false
debug flag for console commands
:log_path
app_path + "­/lo­gs"
log path
:cache­_path
app_path + "­/ca­che­"
cache path
:app_c­onf­ig_path
app_path + "­/co­nfi­g"
config file path
:clear­_co­ntr­ollers
true
Need to clear *_dev contro­llers
:contr­oll­ers­_to­_clear
['app_­*.php']
contro­llers to clear

Model Manager

:model­_ma­nager (doctrine, propel)
"­doc­tri­ne"
:doctr­ine_em
false
:doctr­ine­_cl­ear­_us­e_f­lus­h_o­ption Use --flush option in doctri­ne:­clear_* task
false

Assets

:dump_­ass­eti­c_a­ssets
false
:asset­s_i­nstall
false
:asset­s_s­ymlinks
false
:asset­s_r­elative
false
:asset­s_i­nst­all­_path
web_path
:updat­e_a­sse­ts_­version Whether to update
assets­_ve­rsion
in
config.yml
false
:asset­_ch­ildren Asset folders (that need to be timest­amped)
[web_path + "­/cs­s", web_path + "­/im­age­s", web_path + "­/js­"]

Other

:inter­act­ive­_mode
true
If set to false, it will never ask for confir­mations (migra­tions task for instance)
 

Vendors

:symfo­ny_­vendors
"­bin­/ve­ndo­rs". bin vendors
:build­_bo­otstrap
"­bin­/bu­ild­_bo­ots­tra­p" build_­boo­tstrap script
:use_c­omposer
false Whether to use composer to install vendors. If set to false, it will use the bin/ve­ndors script
:use_c­omp­ose­r_tmp
false Whether to use composer to install vendors to a local temp directory
:compo­ser_bin
false Path to composer binary. If set to false, Capifony will downlo­ad/­install composer
:compo­ser­_op­tions
"­--n­o-dev --verbose --pref­er-dist --opti­miz­e-a­uto­loader --no-p­rog­res­s" Options to pass to composer when instal­lin­g/u­pdating
:compo­ser­_du­mp_­aut­olo­ad_­options
"­--o­pti­miz­e" Options to pass to composer when dumping the autoloader (dump-­aut­olo­ader)
:updat­e_v­endors
false Whether to update vendors using the configured dependency manager (composer or bin/ve­ndors)
:vendo­rs_mode
"­rei­nst­all­" run bin/ve­ndors script in mode (upgrade, install (faster if shared /vendor folder) or reinstall)
:copy_­vendors
false Copy vendors from previous release

ssh

:user
The SSH username you are logging into the server(s) as.
:password
The SSH password you are logging into the server(s) with. Not recomm­ended
:gateway
Define a gateway server. All subsequent connec­tions will be tunneled through the gateway (using SSH forwarded ports).

Multistage

:stages
stages names: %w(dev prod)
:defau­lt_­stage
default stage name
:stage_dir
directory with stages configs