Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@hidakatsuya
Created September 18, 2013 17:38
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 hidakatsuya/6612691 to your computer and use it in GitHub Desktop.
Save hidakatsuya/6612691 to your computer and use it in GitHub Desktop.
nanoc で作った静的サイトを Capistrano でデプロイする ref: http://qiita.com/hidakatsuya/items/f262a00537e9ff6ca425
require 'railsless-deploy'
Dir.chdir 'output'
set :application, 'hoge.com'
set :repository, '.'
set :user, 'username'
set :use_sudo, false
set :scm, :none
set :deploy_via, :copy
set :deploy_to, "/var/www/#{application}"
set :ssh_options, auth_methods: ['publickey']
default_run_options[:pty] = true
server 'www.hoge.com', :web, primary: true
Dir.chdir 'output'
$ cap deploy
gem 'capistrano'
gem 'capistrano_colors'
gem 'railsless-deploy'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment