Skip to content

Instantly share code, notes, and snippets.

@marcoleong
Created August 22, 2012 05:00
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 marcoleong/3422383 to your computer and use it in GitHub Desktop.
Save marcoleong/3422383 to your computer and use it in GitHub Desktop.
Sample deploy file for Capifony and works with MAMP
set :application, "Music Tube"
set :domain, "server.yourserver.com"
set :deploy_to, "~/www/serverfolder.yourserver.com"
set :app_path, "app"
set :repository, "git://github.com/yourname/yourrepo.git"
set :scm, :git
set :scm_verbose, true
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, or `none`
set :model_manager, "doctrine"
set :deploy_via, :remote_cache
# Or: `propel`
role :web, domain # Your HTTP server, Apache/etc
role :app, domain # This may be the same as your `Web` server
role :db, domain, :primary => true # This is where Symfony2 migrations will run
set :keep_releases, 3
set :use_composer, true
set :update_vendors, true
set :shared_files, ["app/config/parameters.yml", "composer.phar"]
set :shared_children, [app_path + "/logs", web_path + "/uploads", "vendor"]
set :use_sudo, true
set :writable_dirs, ["app/cache", "app/logs"]
set :webserver_user, "www"
set :permission_method, :chown
set :dump_assetic_assets, true
# Be more verbose by uncommenting the following line
logger.level = Logger::MAX_LEVEL
after "deploy:update" do
run "#{sudo} chmod -R 777 #{deploy_to}/current/app/cache #{deploy_to}/current/app/cache"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment