Skip to content

Instantly share code, notes, and snippets.

@IainIsCreative
Last active April 22, 2016 10:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IainIsCreative/a7ea11b2975d382848b42dafa223a3b0 to your computer and use it in GitHub Desktop.
Save IainIsCreative/a7ea11b2975d382848b42dafa223a3b0 to your computer and use it in GitHub Desktop.
An example file for deploying our WordPress sites in each environment
# Dploy won't ever upload dev, dev should only be used for local env
# Add theme folder name, and subdomain for staging
# Dploy will only target the theme folder
staging:
host: "staging-host"
user: "staging-user"
pass: "staging-pass"
scheme: "ftp"
port: 21
slots: 2
check: true
path:
local: "content/themes/mytheme/"
remote: "public_html/subdomain/content/themes/mytheme/"
exclude: ["grunt/**", ".bowerrc", ".editorconfig", ".gitignore", ".jshintrc", "bower.json", "Gemfile", "Gemfile.lock", "gruntfile.js", "Gruntfile.js", "package.json", "readme.md", "README.md", "dev/", "dev/**/", "dev/**/*", ".htaccess"]
include:
"content/themes/mytheme/dist/**" : "dist/"
production:
host: "staging-host"
user: "staging-user"
pass: "staging-pass"
scheme: "ftp"
port: 21
slots: 2
branch: ["master"]
check: true,
path:
local: "content/themes/mytheme/"
remote: "public_html/subdomain/content/themes/mytheme/"
exclude: ["grunt/**", ".bowerrc", ".editorconfig", ".gitignore", ".jshintrc", "bower.json", "Gemfile", "Gemfile.lock", "gruntfile.js", "Gruntfile.js", "package.json", "readme.md", "README.md", "dev/", "dev/**/", "dev/**/*", ".htaccess"]
include:
"content/themes/mytheme/dist/**" : "dist/"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment