du060334 2015-12-25 14:44
浏览 73

Capifony:生产服务器上的存储库

I have Capifony config:

set :application, "AppName"
set :name,        "appName"
set :domain,      "myServer"
set :deploy_to,   "/var/www/appname"
set :app_path,    "app"

ssh_options[:forward_agent] = true
default_run_options[:pty] = true

set :repository,  "git@bitbucket.org:myname/repoapp.git"
set :scm,         :git

and it works fine. But I want copy files from repository which on the same production server myServer (~/repoapp.git).

Something like: set :repository, "myServer:~/repoapp.git"

It shows error:

    servers: ["myServer"]
    [myServer] executing command
 ** [myServer :: out] ssh: Could not resolve hostname myServer: No address associated with hostname
 ** [myServer :: out]
 ** [myServer :: out] fatal: Could not read from remote repository.
 ** [myServer :: out]
 ** [myServer :: out]
 ** Please make sure you have the correct access rights
 ** and the repository exists.

SSH config:

Host myServer
Hostname 192.241.xxx.xxx
User root
IdentityFile ~/.ssh/digital_ocean
  • 写回答

1条回答 默认 最新

  • dongzhi6927 2015-12-25 14:49
    关注

    As I understand you want to use local git repository that is located on same server where you are deploying

    you can do it as

    set :repository, "file:///srv/git/repoapp.git"
    set :local_repository, "file://."
    
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度