Prepare servers for deploy.
In the prepare command servers are setup, like adding a database if that does not exists, for drupal sites the command creates a drush alias. It also does a db backup, creates a default tracker-file, a rollback tracker file, delete old tracker files and old db backups.
Multi-sites
For multi-sites, this command also creates a new site on an existing installation. (documentation to follow).
dropcat prepare
Options
--drush-folder[=DRUSH-FOLDER] Drush folder
--drush-script[=DRUSH-SCRIPT] Drush script path (can be remote)
--drush-alias[=DRUSH-ALIAS] Drush alias
--server[=SERVER] Server
--user[=USER] User (ssh)
--ssh-port[=SSH-PORT] SSH port
--ssh-key-password[=SSH-KEY-PASSWORD] SSH key password
--ssh-key[=SSH-KEY] SSH key
--web-root[=WEB-ROOT] Web root
--alias[=ALIAS] Symlink alias
--url[=URL] Site url
--site-name[=SITE-NAME] Site name
--mysql-host[=MYSQL-HOST] Mysql host
--mysql-port[=MYSQL-PORT] Mysql port
--mysql-db[=MYSQL-DB] Mysql db
--mysql-user[=MYSQL-USER] Mysql user
--mysql-password[=MYSQL-PASSWORD] Mysql password
--timeout[=TIMEOUT] Timeout [default: "3600"]
--tracker-file[=TRACKER-FILE] Trackerfile
--create-site[=CREATE-SITE] Create site
--sync-folder[=SYNC-FOLDER] Sync folder [default: "../sync"]
--config-split-folder[=CONFIG-SPLIT-FOLDER] Config split folder
--profile[=PROFILE] Install profile to use [default: "minimal"]
--tracker-dir[=TRACKER-DIR] Tracker direcory
--backup-path[=BACKUP-PATH] Backup path
--backup-db-path[=BACKUP-DB-PATH] Backup DB path (absolute path with filename)
Yaml config
site:
environment:
drush_alias: foobar
remote:
environment:
server: 127.0.0.1
ssh_user: foo
ssh_port: 22
target_path: /var/www/webroot
identity_file: /home/mysuser/.ssh/id_rsa
web_root: /var/www/webroot
temp_folder: /tmp
alias: mysite_latest_stage
target_dir: /tmp
ssh_key_password: foosecret
mysql:
environment:
host: localhost
database: testdb_1
user: root
password: password
port: 3306