deployment - Symfony2 + GitFlow + Capifony + Capistrano-ext -
i'm developing website using symfony2 , gitflow. have 2 external servers called 'development', 'staging' , 'production' , central git repository on github.
i'm looking utilize capifony to:
deploy 'develop' branch changes development server. deploy releases/hotfixes etc staging test deploy 'master' branch live 'production' serveri've been reading this page multistage deployment , far have installed capifony capistrano extension.
within /app/config/deploy.rb file have following:
set :stage_dir, 'app/config/deploy' # needed symfony2 require 'capistrano/ext/multistage' set :stages, %w(production staging development) set :application, "myapp" set :repository, "git@github.com:mycompany/#{application}.git" set :scm, :git set :keep_releases, 3
i've got separate /app/config/development.rb file following:
server 'server_ip - port number', :app, :web, :primary => true set :deploy_to, "/var/www/myapp/" #directory on server set :symfony_env_prod, "test"
however, if run cap development deploy error
the task `development' not exist
can explain 'task' refers to?
thanks
move require 'capistrano/ext/multistage'
lastly line of deploy.rb
or @ to the lowest degree move set :stages, %w(production staging development)
before it.
symfony2 deployment capistrano git-flow capifony
No comments:
Post a Comment