【发布时间】:2017-03-11 04:52:18
【问题描述】:
有人可以帮忙吗,我已经设置了 Bitbucket 和 Capistrano 并正在测试部署到远程服务器,但我无法将它部署到根目录,我环顾四周,但似乎找不到改变它的方法。
例如/var/www/html/web_app/
但我明白了
例如/var/www/html/releases/20161028093829
任何想法。提前致谢。
版本“3.6.1”
部署.rb
set :application, "hunter"
set :repo_url, "git@bitbucket.org:*****.git"
# Default value for keep_releases is 5
set :keep_releases, 2
CAPFILE
需要“capistrano/设置”
需要“capistrano/rsync”
需要“capistrano/部署”
需要“capistrano/scm/git” install_plugin Capistrano::SCM::Git
Dir.glob("lib/capistrano/tasks/*.rake").each { |r|导入 }
Rake::Task[:production].invoke
【问题讨论】:
-
发布您的一些环境配置,以便我们更好地帮助您。您使用的是哪个版本的 Capistrano?可能是
:deploy_to(capistranorb.com/documentation/getting-started/structure)的错误配置 -
谢谢你,alejdg.....见上文
-
成功了吗?
标签: git capistrano bitbucket devops