Permalink
Browse files

capify

  • Loading branch information...
1 parent 177e310 commit 194128155871ffba0e5f366cc902971a5a6f5276 @hsbt hsbt committed Jan 4, 2011
View
@@ -0,0 +1,4 @@
+load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+
+load 'tdiary/deploy' # remove this line to skip loading any of the default tasks
View
@@ -2,6 +2,10 @@ source :rubygems
gem 'rack'
+group :development do
+ gem 'capistrano'
+end
+
group :test do
gem 'rspec'
gem 'rcov'
View
@@ -1,6 +1,12 @@
GEM
remote: http://rubygems.org/
specs:
+ capistrano (2.5.19)
+ highline
+ net-scp (>= 1.0.0)
+ net-sftp (>= 2.0.0)
+ net-ssh (>= 2.0.14)
+ net-ssh-gateway (>= 1.0.0)
capybara (0.4.0)
celerity (>= 0.7.9)
culerity (>= 0.2.4)
@@ -18,11 +24,19 @@ GEM
diff-lcs (1.1.2)
ffi (0.6.3)
rake (>= 0.8.7)
+ highline (1.6.1)
json_pure (1.4.6)
launchy (0.3.7)
configuration (>= 0.0.5)
rake (>= 0.8.1)
mime-types (1.16)
+ net-scp (1.0.4)
+ net-ssh (>= 1.99.1)
+ net-sftp (2.0.5)
+ net-ssh (>= 2.0.9)
+ net-ssh (2.0.23)
+ net-ssh-gateway (1.0.1)
+ net-ssh (>= 1.99.1)
nokogiri (1.4.4)
rack (1.2.1)
rack-test (0.5.7)
@@ -52,6 +66,7 @@ PLATFORMS
ruby
DEPENDENCIES
+ capistrano
capybara
launchy
rack
View
No changes.
No changes.
No changes.
View
@@ -0,0 +1,19 @@
+set :application, "tdiary-core"
+set :repository, File.expand_path('../..', __FILE__)
+
+set :user, "user"
+set(:home) { "/home/#{user}" }
+set(:deploy_to) { "#{home}/app/tdiary-core" }
+set :scm, :git
+set :branch, 'master'
+set :deploy_via, :copy
+
+role :app, "server"
+
+namespace :deploy do
+ task :start do ; end
+ task :stop do ; end
+ task :restart, :roles => :app, :except => { :no_release => true } do
+ run "touch #{File.join(current_path, 'tmp', 'restart.txt')}"
+ end
+end

0 comments on commit 1941281

Please sign in to comment.