Skip to content

Instantly share code, notes, and snippets.

@Brammm
Created April 3, 2013 07:19
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 Brammm/5299083 to your computer and use it in GitHub Desktop.
Save Brammm/5299083 to your computer and use it in GitHub Desktop.
Capifony example deploy script
#logger.level = Logger::MAX_LEVEL
#default_run_options[:pty] = true
set :application, "moovly"
set :stage, "staging"
set :branch, "develop"
set :domain, "#{stage}.#{application}.com"
set :deploy_to, "/var/www/html/sites/#{domain}"
set :app_path, "app"
set :scm, :git
set :repository, "git@dreamsandcreations.beanstalkapp.com:/smoovi-backoffice.git"
set :scm_passphrase, ""
set :model_manager, "doctrine"
role :web, "5.134.1.15" # Your HTTP server, Apache/etc
role :app, "5.134.1.15" # This may be the same as your `Web` server
role :db, "5.134.1.15", :primary => true # This is where Symfony2 migrations will run
set :keep_releases, 3
set :ssh_options, { :forward_agent => true }
set :user, 'root'
set :pass, '*_zF4@-+2rgX'
server "5.134.1.15", :app, :web, :db, :primary => true
set :shared_files, ["app/config/parameters.yml"]
set :shared_children, [app_path + "/logs", web_path + "/upload", "vendor"]
set :use_composer, true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment