Commit d8cc5f8a
config/deploy.rb
@@ -18,7 +18,7 @@ set :deploy_to, "/home/cakeside/apps/#{application}"
set :scm, :git
set :repository, "git@bitbucket.org:mocheen/cakeside.git"
set :keep_releases, 3
-set :branch, "master"
+set :branch, ENV["branch"] || "master"
set :deploy_env, 'production'
set :scm_verbose, true
Rakefile
@@ -6,9 +6,6 @@ require 'rake'
Cake::Application.load_tasks
-task :deploy_rc do
- sh "cap staging deploy"
-end
task :deploy_live do
sh "cap production deploy"
end
@@ -16,3 +13,14 @@ end
task :install_keys do
sh "cp doc/keys/*.pem ~/.ssh/amazon-cakeside/"
end
+
+namespace :deploy do
+ task :staging do
+ #branch_name = "staging-#{Time.now.strftime('%Y-%m-%d-%T')}"
+ #sh "git branch #{branch_name}"
+ #sh "git push origin #{branch_name}"
+ puts "staging is fun! #{branch_name}"
+ #sh "cap staging deploy branch=#{branch_name}"
+ end
+end
+