Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !!# At the top of my deploy.rb
- yamled = YAML.load_file(File.join(File.dirname(__FILE__), "deploy.yml"))
- set :application, yamled["app"]
- set :repository, yamled["rep"]
- role :app, yamled["app"]
- role :web, yamled["app"]
- role :db, yamled["app"], :primary => true
- set :deploy_to, yamled["apppath"]
- set :deploy_via, :export
- set :use_sudo, false
- set :user, yamled["appuser"]
- set :password, yamled["apppass"]
- set :scm_username, yamled["repuser"]
- set :scm_password, yamled["reppass"]
- !!# In config/deploy.yml
- app: # Your application's web address
- apppath: # Your application's path on the application server
- appuser: # Your username on the application server
- apppass: # Your password on the application server
- rep: # Your svn repository
- repuser: # Your username on the svn repository
- reppass: # Your password on the svn repository
Add Comment
Please, Sign In to add comment