Public Access
feat: deploy-sftp.php supports --env demo and --env live with multi-instance (#184)
Universal: Auto Version Bump / Version Bump (push) Successful in 8s
Universal: Auto Version Bump / Version Bump (push) Successful in 8s
- Add demo and live to ENV_CONFIG_MAP - Add multi-target deploy via LIVE_TARGETS env var (JSON array of targets) - Add sftp-config.demo.json.example and sftp-config.live.json.example templates - Failed targets logged but don't block remaining deploys
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"_template": "Copy this file to scripts/sftp-config/sftp-config.demo.json — it is gitignored",
|
||||
"_env": "demo",
|
||||
|
||||
"type": "sftp",
|
||||
|
||||
"save_before_upload": false,
|
||||
"upload_on_save": false,
|
||||
"sync_down_on_open": false,
|
||||
"sync_skip_deletes": false,
|
||||
"sync_same_age": true,
|
||||
"confirm_downloads": false,
|
||||
"confirm_sync": true,
|
||||
"confirm_overwrite_newer": true,
|
||||
|
||||
"host": "YOUR_DEMO_HOST",
|
||||
"user": "YOUR_DEMO_USERNAME",
|
||||
"ssh_key_file": "jmiller_private.ppk",
|
||||
"port": "22",
|
||||
|
||||
"remote_path": "/home/YOUR_USER/YOUR_DEMO_DOMAIN/htdocs/custom/YOUR_MODULE/",
|
||||
|
||||
"ignore_regexes": [
|
||||
"\\.sublime-(project|workspace|settings)",
|
||||
"\\.libsass.json/",
|
||||
"sftp-config(-alt\\d?)?\\.json",
|
||||
"sftp-settings\\.json",
|
||||
"/venv/",
|
||||
"\\.svn/",
|
||||
"\\.hg/",
|
||||
"\\.bzr",
|
||||
"_darcs",
|
||||
"CVS",
|
||||
"\\.DS_Store",
|
||||
"Thumbs\\.db",
|
||||
"robots\\.txt",
|
||||
"desktop\\.ini",
|
||||
"configuration\\.php",
|
||||
"\\.ffs*",
|
||||
"\\.git*",
|
||||
"\\.editorconfig",
|
||||
"conf\\.php",
|
||||
"\\.ps1",
|
||||
"\\.tx"
|
||||
],
|
||||
|
||||
"connect_timeout": 30
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
{
|
||||
"_template": "Copy this file to scripts/sftp-config/sftp-config.live.json — it is gitignored",
|
||||
"_env": "live",
|
||||
"_note": "For multi-instance live deploy, use the LIVE_TARGETS env var instead (JSON array of target objects)",
|
||||
|
||||
"type": "sftp",
|
||||
|
||||
"save_before_upload": false,
|
||||
"upload_on_save": false,
|
||||
"sync_down_on_open": false,
|
||||
"sync_skip_deletes": false,
|
||||
"sync_same_age": true,
|
||||
"confirm_downloads": false,
|
||||
"confirm_sync": true,
|
||||
"confirm_overwrite_newer": true,
|
||||
|
||||
"host": "YOUR_LIVE_HOST",
|
||||
"user": "YOUR_LIVE_USERNAME",
|
||||
"ssh_key_file": "~/.ssh/id_rsa",
|
||||
"port": "22",
|
||||
|
||||
"remote_path": "/home/YOUR_USER/YOUR_LIVE_DOMAIN/htdocs/custom/YOUR_MODULE/",
|
||||
|
||||
"ignore_regexes": [
|
||||
"\\.sublime-(project|workspace|settings)",
|
||||
"\\.libsass.json/",
|
||||
"sftp-config(-alt\\d?)?\\.json",
|
||||
"sftp-settings\\.json",
|
||||
"/venv/",
|
||||
"\\.svn/",
|
||||
"\\.hg/",
|
||||
"\\.bzr",
|
||||
"_darcs",
|
||||
"CVS",
|
||||
"\\.DS_Store",
|
||||
"Thumbs\\.db",
|
||||
"robots\\.txt",
|
||||
"desktop\\.ini",
|
||||
"configuration\\.php",
|
||||
"\\.ffs*",
|
||||
"\\.git*",
|
||||
"\\.editorconfig",
|
||||
"conf\\.php",
|
||||
"\\.ps1",
|
||||
"\\.tx"
|
||||
],
|
||||
|
||||
"connect_timeout": 30
|
||||
}
|
||||
Reference in New Issue
Block a user