我正在研究一个symfony2项目,我正在我的生产服务器上运行jenkins,所以每次我推送到bitbucket它都会触发一个jenkins工作并在/var/lib/jenkins/jobs/job_name/workspace
中进行构建并成功构建。
现在我想在所有这些中集成capifony,但我不知道,我尝试了如何配置它。
当我尝试执行" cap deploy"时出现以下错误:
Please specify the name of your application, set :application, 'foo'
POST BUILD TASK : FAILURE
这是我的deploy.rb文件:
set :application, "myapp"
set :domain, "mywebsite.com"
set :deploy_to, "/tmp/deploy"
set :app_path, "app"
set :use_sudo, false
set :scm, :none
set :repository, "."
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `subversion`, `mercurial`, `perforce`, \
or `none`
set :model_manager, "doctrine"
# Or: `propel`
role :web, domain # Your HTTP server, Apache/etc
role :app, domain, :primary => true # This may be the same as your\
`Web` server
set :use_composer, true
set :update_vendors, true
set :keep_releases, 3
# Be more verbose by uncommenting the following line
# logger.level = Logger::MAX_LEVEL
谢谢。