Deployment flow¶
Folder structure¶
remote_dir
|-deploy_dir
| |-20130411_212959
| |-20130411_213213
| |-20130412_181014
| |-current -> 20130412_181014
| |-previous -> 20130411_213213
|-migration_dir
|-upload_dir
|-dump_file
Deployment process¶
- Test remote server
Checks if connection to remote server is possible.
Execute pre-deploy commands
- Get sources
If local git repository is found, it will be pulled, else will be cloned.
Archive sources
Upload sources to remote server
Extract source to target subfolder
Switch current/previous links
Copy config files
Run post-deploy commands