Skip to content

Instantly share code, notes, and snippets.

@bdecarne
Last active December 31, 2015 22:19
Show Gist options
  • Save bdecarne/8052604 to your computer and use it in GitHub Desktop.
Save bdecarne/8052604 to your computer and use it in GitHub Desktop.
parameters.yml configuration during capifony deployment for Symfony2
set :application, "My App"
set :domain, "domain.com"
set :deploy_to, "/home/domain/www"
set :app_path, "app"
set :user, "deploy"
set :use_sudo, false
# default_run_options[:pty] = true
set :repository, "git@xxx.com:project"
set :scm, :git
set :branch, "master"
set :deploy_via, :remote_cache
set :scm_verbose, true
set :model_manager, "doctrine"
role :web, domain # Your HTTP server, Apache/etc
role :app, domain, :primary => true # This may be the same as your `Web` server
set :keep_releases, 3
# symfony2
set :shared_files, ["app/config/parameters.yml"]
set :shared_children, [app_path + "/logs", web_path + "/uploads", "vendor"]
set :use_composer, true
set :update_vendors, true
set :writable_dirs, ["app/cache", "app/logs"]
set :webserver_user, "www-data"
set :permission_method, :chown # :acl with https://help.ubuntu.com/community/FilePermissionsACLs
set :use_set_permissions, true
set :dump_assetic_assets, true
# Be more verbose by uncommenting the following line
# logger.level = Logger::MAX_LEVEL
# Enable app_dev.php
# set :clear_controllers, false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment