Skip to content

Instantly share code, notes, and snippets.

@diraulo
Created December 12, 2016 17:53
Show Gist options
  • Save diraulo/b96832ad6eb13cf26331610cca573c0b to your computer and use it in GitHub Desktop.
Save diraulo/b96832ad6eb13cf26331610cca573c0b to your computer and use it in GitHub Desktop.
Code snippet for medium post on deploying Middleman sites via SemaphoreCI - Use env variables
# ... more configs
activate :deploy do |deploy|
deploy.deploy_method = :rsync
deploy.host = ENV.fetch('DEPLOY_HOST')
deploy.path = ENV.fetch('DEPLOY_DIR')
deploy.build_before = true
deploy.clean = true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment