This file contains hidden or 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
| set :application, "application_name" | |
| set :rails_env, 'production' # only needed for migrations | |
| set :user, "webXX" | |
| role :web, "serverX.domaincamp.de" # Your HTTP server, Apache/etc | |
| role :app, "serverX.domaincamp.de" # This may be the same as your `Web` server | |
| role :db, "serverX.domaincamp.de", :primary => true # This is where Rails migrations will run | |
| set :scm, :git | |
| set :repository, "git@yourgithost.tld:username/project/project.git" |
This file contains hidden or 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
| # download, from_repo, and commit_state methods swiped from | |
| # http://github.com/Sutto/rails-template/blob/07b044072f3fb0b40aea27b713ca61515250f5ec/rails_template.rb | |
| require 'open-uri' | |
| def download(from, to = from.split("/").last) | |
| #run "curl -s -L #{from} > #{to}" | |
| file to, open(from).read | |
| rescue | |
| puts "Can't get #{from} - Internet down?" |
NewerOlder