Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

some more work on deploy script

  • Loading branch information...
commit bbc42f9f782efda3f3340465a6a268a7cec2fe18 1 parent 717ff96
Dave Kennedy authored
Showing with 15 additions and 11 deletions.
  1. +1 −0  .gitignore
  2. +14 −11 config/deploy.rb
1  .gitignore
View
@@ -5,3 +5,4 @@ tmp/
.sass-cache/
dna.json
*.swp
+.rvmrc
25 config/deploy.rb
View
@@ -1,21 +1,24 @@
-require 'json'
+ssh_options[:forward_agent] = true
+default_run_options[:pty] = true
-user = JSON.parse('../dna.json')
+require 'json'
+set :user_details, JSON.parse(IO.read('dna.json'))
-ssh_options[:forward_agent] = true
+set :domain, "capdemo.bangline.co.uk"
-set :application, "capistrano_demo"
-set :user, user['name']
-set :password, user['password']
-set :deploy_to, "/home/#{user}/app"
+set :application, domain
+set :user, user_details['name']
+set :password, user_details['password']
+set :deploy_to, "/home/#{user}"
+set :use_sudo, false
-set :repository, "git@github.com:bangline/icapistrano_demo.git"
+set :repository, "git@github.com:bangline/capdemo.git"
set :scm, :git
set :branch, "master"
-role :app, "capdemo.bangline.co.uk"
-role :web, "capdemo.bangline.co.uk"
-role :db, "capdemo.bangline.co.uk", :primary => true
+role :app, domain
+role :web, domain
+role :db, domain, :primary => true
# If you are using Passenger mod_rails uncomment this:
# namespace :deploy do
Please sign in to comment.
Something went wrong with that request. Please try again.