我是新手。我需要设置capistrano来与perforce一起工作。我看一下perforce插件的上限,但不太确定如何设置它。那里的任何高手可以给我一些一步一步的指导吗?
答案 0 :(得分:1)
没什么好看的,只需在您的Capfile中为您的perforce服务器设置所需信息,如下所示:
# Perforce specifics
set :scm, :perforce
set :p4port, "yourserver:1666"
set :p4user, "youruser"
set :p4passwd, "yourpassword"
set :p4, "/usr/local/bin/p4"
set :p4client, "name-of-client-spec"
然后在perforce depot中设置应用程序的路径(也在Capfile中):
set :application, "Name"
set :repository, "//depot/path/to/application/...
set :deploy_to, "/path/on/server/to/deploy/to"