Skip to content

Instantly share code, notes, and snippets.

@rachid
Created February 23, 2010 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rachid/312042 to your computer and use it in GitHub Desktop.
Save rachid/312042 to your computer and use it in GitHub Desktop.
deploy.rb.windows
# This recipe works for Windows users
# use the ubuntu machine gem
require 'capistrano/ext/ubuntu-machine'
# #######################################
# HOSTING PROVIDER CONFIGURATION
# Those tasks have been tested with severa hosting providers
# and sometimes tasks are specific to those providers
set :hosting_provider, "slicehost" # currently supported : ovh-rps, ovh-dedie, slicehost
# #######################################
# SERVER CONFIGURATION
set :server_name, "external.machine.com"
set :user, 'demo' # will be a new user
ssh_options[:port] = 22
default_run_options[:pty] = true
# #######################################
# LOCAL CONFIGURATION
# path to your local generated ssh key file
pathname = "c:\/Users\/demo\/.ssh\/id_dsa"
ssh_options[:keys] = pathname.to_s
#where to put downloaded files
set :default_local_files_path, "C:\/"
# #######################################
# SOFTWARE INSTALL CONFIGURATION
# version numbers
# set :ruby_enterprise_version, "ruby-enterprise-1.8.6-20090113" -> not needed anymore the latest version if automatically fetched
# set :passenger_version, "2.0.6" -> not needed anymore the latest version if automatically fetched
set :rubygem_version, "1.3.5"
set :git_version, "git-1.6.5.1"
# some Apache default values
set :default_server_admin, "demo@yourdomain"
set :default_directory_index, "index.html"
role :gateway, server_name
role :app, server_name
role :web, server_name
role :db, server_name, :primary => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment