Skip to content

Instantly share code, notes, and snippets.

@will-in-wi
Created August 20, 2016 12:18
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 will-in-wi/527327e31af30b3eae2068e2965be05b to your computer and use it in GitHub Desktop.
Save will-in-wi/527327e31af30b3eae2068e2965be05b to your computer and use it in GitHub Desktop.
require "capistrano/setup"
require "capistrano/deploy"
lock '3.6'
set :application, 'my_app_name'
set :repo_url, 'git@example.com:me/my_repo.git'
set :latest_release_directory, '/tmp'
namespace :test_case do
desc 'A test for issue #1748'
task :testing do
on roles(:app) do |host|
within fetch(:latest_release_directory) do
puts fetch(:latest_release_directory)
execute %Q( pwd )
end
end
end
end
source 'https://rubygems.org'
gem 'capistrano'
server 'localhost', roles: %w{app db web}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment