首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >将Sails.js应用程序部署到dokku-alt?Buildpack错误

将Sails.js应用程序部署到dokku-alt?Buildpack错误
EN

Stack Overflow用户
提问于 2015-07-22 10:58:41
回答 1查看 314关注 0票数 1

当将Sails.js部署到DigitalOcean上的dokku-alt时,我得到以下错误。在安装Sails.js时,它似乎失败了,但是我找不到有关此错误消息的任何信息。我想知道这个错误信息意味着什么,以及如何解决这个问题。谢谢你的帮助!

终端

代码语言:javascript
复制
-----> Building dependencies
       No cache available
       Installing node modules
       npm WARN deprecated grunt-lib-contrib@0.7.1: DEPRECATED. See readme: https://github.com/gruntjs/grunt-lib-contrib
       npm WARN optional dep failed, continuing fsevents@0.3.6

       > sails@0.11.0 preinstall /tmp/build/node_modules/sails
       > node ./lib/preinstall_npmcheck.js


remote: /tmp/buildpacks/heroku-buildpack-nodejs/lib/build.sh: line 166:   104 Killed                  npm install --quiet --userconfig $build_dir/.npmrc 2>&1
remote:        105 Done                    | indent

-----> Build failed

       WARNING: Node version not specified in package.json
       https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

       We're sorry this build is failing! If you can't find the issue in application code,
       please submit a ticket so we can help: https://help.heroku.com/
       You can also try reverting to our legacy Node.js buildpack:
       heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs#v63

       Love,
       Heroku
To dokku@45.55.65.138:chessrabbit-server
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'dokku@12.34.56.789:chessrabbit-server'

我的package.json

代码语言:javascript
复制
{
  "name": "test",
  "private": true,
  "version": "0.0.0",
  "description": "a Sails application",
  "keywords": [],
  "dependencies": {
    "async": "^1.3.0",
    "connect-mongo": "^0.8.1",
    "ejs": "~0.8.4",
    "grunt": "0.4.2",
    "grunt-browserify": "^3.8.0",
    "grunt-contrib-clean": "~0.5.0",
    "grunt-contrib-coffee": "~0.10.1",
    "grunt-contrib-concat": "~0.3.0",
    "grunt-contrib-copy": "~0.5.0",
    "grunt-contrib-cssmin": "~0.9.0",
    "grunt-contrib-jst": "~0.6.0",
    "grunt-contrib-less": "0.11.1",
    "grunt-contrib-uglify": "~0.4.0",
    "grunt-contrib-watch": "~0.5.3",
    "grunt-mocha-test": "^0.12.7",
    "grunt-react": "^0.12.2",
    "grunt-sails-linker": "~0.9.5",
    "grunt-shell": "^1.1.2",
    "grunt-sync": "~0.0.4",
    "include-all": "~0.1.3",
    "kaiseki": "^0.5.6",
    "lodash": "^3.10.0",
    "mocha": "^2.2.5",
    "moment": "^2.10.3",
    "rc": "~0.5.0",
    "sails": "~0.11.0",
    "sails-auth": "^1.2.7",
    "sails-disk": "~0.10.0",
    "sails-hook-babel": "^5.0.1",
    "sails-mongo": "^0.11.2",
    "stripe": "^3.6.0",
    "tracer": "^0.7.4",
    "uuid": "^2.0.1"
  },
  "scripts": {
    "debug": "node debug app.js",
    "start": "sails lift --prod --port 80"
  },
  "main": "app.js",
  "repository": {
    "type": "git",
    "url": "git://github.com/henry/test.git"
  },
  "author": "henry",
  "license": ""
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-07-22 11:37:04

问题实际上是我的VPS内存耗尽了。解决方案是简单地添加一个交换分区。

有关如何添加交换分区的详细指南可以在这里找到:https://www.digitalocean.com/community/tutorials/how-to-add-swap-on-ubuntu-14-04

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

https://stackoverflow.com/questions/31561186

复制
相关文章

相似问题

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