首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >DigitalOcean VPS检查失败

DigitalOcean VPS检查失败
EN

Stack Overflow用户
提问于 2013-09-11 16:43:04
回答 1查看 114关注 0票数 0

我正在尝试将一个Node.js应用程序部署到运行在DigitalOcean上的VPS上,到目前为止,我已经得到了well..very。我对*nix的理解非常有限,所以请容忍我:)

我可以使用ssh键作为根用户进入我的VPS (Ubuntu13.04 x32),没有任何问题。当我在本地机器上运行"$cap部署:安装“时,我会得到以下结果:

代码语言:javascript
复制
  * 2013-09-11 12:39:08 executing `deploy:setup'
  * executing "mkdir -p /var/www/yable /var/www/yable/releases /var/www/yable/shared /var/www/yable/shared/system /var/www/yable/shared/log /var/www/yable/shared/pids"
    servers: ["162.243.1.207"]
    [162.243.1.207] executing command
 ** [out :: 162.243.1.207] env: sh: No such file or directory
    command finished in 118ms
failed: "env PATH=/var/www/yable NODE_ENV=production sh -c 'mkdir -p /var/www/yable /var/www/yable/releases /var/www/yable/shared /var/www/yable/shared/system /var/www/yable/shared/log /var/www/yable/shared/pids'" on 162.243.1.207

当我运行"$cap deploy:check“时,我得到以下输出:

代码语言:javascript
复制
* 2013-09-11 12:40:36 executing `deploy:check'
  * executing "test -d /var/www/yable/releases"
    servers: ["162.243.1.207"]
    [162.243.1.207] executing command
    command finished in 67ms
  * executing "test -w /var/www/yable"
    servers: ["162.243.1.207"]
    [162.243.1.207] executing command
    command finished in 76ms
  * executing "test -w /var/www/yable/releases"
    servers: ["162.243.1.207"]
    [162.243.1.207] executing command
    command finished in 69ms
  * executing "which git"
    servers: ["162.243.1.207"]
    [162.243.1.207] executing command
    command finished in 75ms
The following dependencies failed. Please check them and try again:
--> `/var/www/yable/releases' does not exist. Please run `cap deploy:setup'. (162.243.1.207)
--> You do not have permissions to write to `/var/www/yable'. (162.243.1.207)
--> You do not have permissions to write to `/var/www/yable/releases'. (162.243.1.207)
--> `git' could not be found in the path (162.243.1.207)

下面是我的config/ployy.rb文件:

代码语言:javascript
复制
set :application, "Yable.com"
set :scm, :git
set :repository, "git@github.com:Yable/yable-node-js.git"
set :user, "root"
set :ssh_options, { :forward_agent => true }
default_run_options[:pty] = true
set :use_sudo, false
set :branch, "master"

role :app, "162.243.1.207"
set :deploy_to, "/var/www/yable"

set :default_environment, {
  'PATH' => "/var/www/yable",
  'NODE_ENV' => 'production'
}

我很惊讶,因为上面提到的目录(/var/www/yable/ mentioned )确实存在,而且git已经安装好了。有什么想法吗?

谢谢,弗朗西斯

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2013-09-11 21:04:36

我安装了ruby 2.0.0和Bundler,它似乎解决了我的部署问题。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/18746833

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档