lib/negroku/templates/deploy.rb.erb in negroku-0.0.11 vs lib/negroku/templates/deploy.rb.erb in negroku-0.0.12
- old
+ new
@@ -1,24 +1,18 @@
-# Servers and their roles.
-server "<%= data[:target_server] %>", :web, :app, :db, primary: true
+# Set server stages
+set :stages, %w(production staging)
+set :default_stage, "staging"
+require 'capistrano/ext/multistage'
# Server-side information.
set :application, "<%= data[:application_name] %>"
set :user, "deploy"
set :deploy_to, "/home/#{user}/applications/#{application}"
# Repository (if any) configuration.
set :deploy_via, :remote_cache
set :repository, "<%= data[:repo] %>"
-set :branch, "production" # Optional, defaults to master
-# set :remote, "negroku" # Optional, defaults to origin
# set :git_enable_submodules, 1
-
-# Web server configuration
-set :domains, "<%= data[:domains] %>"
-
-# Rails
-# set :rails_env, "production"
# Database
# set :migrate_env, "migration"
# Unicorn