Skip to content

Instantly share code, notes, and snippets.

@h0lyalg0rithm
Last active September 13, 2015 18:14
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 h0lyalg0rithm/84431cc248454fed8754 to your computer and use it in GitHub Desktop.
Save h0lyalg0rithm/84431cc248454fed8754 to your computer and use it in GitHub Desktop.
Static Deployments with Capistrano
require 'capistrano/setup'
require 'capistrano/deploy'
lock '3.4.0'
role :web, %w{user@server.com}
set :default_stage, "production"
set :application, 'test'
set :repo_url, 'git_repo_url'
set :deploy_to, '/var/www/#{fetch(:application)}'
set :scm, :git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment