Created
July 15, 2010 21:32
-
-
Save rachid/477561 to your computer and use it in GitHub Desktop.
deploy.rb.macos
This file contains 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
# use the ubuntu machine gem | |
# tested with MacOS should probably also work fine with unix based machines | |
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 | |
# not using this one | |
# ####################################### | |
# SERVER CONFIGURATION | |
set :server_name, "external.host.nl" | |
set :user, 'your_web_username' | |
ssh_options[:port] = 22 | |
# ####################################### | |
# LOCAL CONFIGURATION | |
#set your external information | |
ssh_options[:keys] = "/Users/your_local_username/.ssh/id_rsa" | |
set :default_local_files_path, "~/" | |
default_run_options[:pty] = true | |
# ####################################### | |
# 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.7" | |
set :git_version, "git-1.7.1" | |
# some Apache default values | |
set :default_server_admin, "info@external.host.nl" | |
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