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
default_run_options[:pty] = true | |
load 'deploy' if respond_to?(:namespace) # cap2 differentiator | |
require 'capistrano' | |
require 'rubygems' | |
require 'railsless-deploy' | |
set :application, "vault42.org" | |
set :deploy_to, "/usr/local/www/#{application}" | |
set :backup_dir, "/home/tomislav/backup" | |
set :use_sudo, false |
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
# You can override these if you want in environment initializers: | |
COUCHDB_HOST = 'http://127.0.0.1:5984' unless defined?(COUCHDB_HOST) | |
COUCHDB_DB_NAME = "learnhub_#{Rails.env}" unless defined?(COUCHDB_DB_NAME) | |
# This stuff should stay here: | |
COUCHDB_SERVER = CouchRest.new(COUCHDB_HOST) | |
COUCHDB_DATABASE = COUCHDB_SERVER.database!(COUCHDB_DB_NAME) | |
CouchRest::Model.default_database = COUCHDB_DATABASE |
NewerOlder