Created
September 18, 2013 17:38
-
-
Save hidakatsuya/6612691 to your computer and use it in GitHub Desktop.
nanoc で作った静的サイトを Capistrano でデプロイする ref: http://qiita.com/hidakatsuya/items/f262a00537e9ff6ca425
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dir.chdir 'output' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cap deploy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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