Dokku Buil失败 - 预接收挂钩拒绝

时间:2016-08-26 00:24:33

标签: node.js heroku docker digital-ocean dokku

一直试图解决这个问题几个小时,但我刚刚在我的服务器上更新了Docker,现在我无法通过" git push dokku origin master"

这是我收到的消息。请帮忙!!!

Counting objects: 59, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (56/56), done.
Writing



objects: 100% (59/59), 5.89 KiB | 0 bytes/s, done.
Total 59 (delta 38), reused 0 (delta 0)
-----> Cleaning up...
-----> Building psofnyc from herokuish...
-----> Adding BUILD_ENV to build environment...
-----> Node.js app detected

-----> Creating runtime environment

       NPM_CONFIG_LOGLEVEL=error
       NPM_CONFIG_PRODUCTION=true
       NODE_ENV=production
       NODE_MODULES_CACHE=true

-----> Installing binaries
       engines.node (package.json):  4.1.2
       engines.npm (package.json):   2.14.4

       Downloading and installing node 4.1.2...
       npm 2.14.4 already installed with node

-----> Restoring cache
       Loading 2 from cacheDirectories (default):
       - node_modules (not cached - skipping)
       - bower_components (not cached - skipping)

-----> Building dependencies
       Pruning any extraneous modules
       Installing node modules (package.json)
remote: /tmp/buildpacks/heroku-buildpack-nodejs/lib/dependencies.sh: line 10:   306 Killed                  npm install --unsafe-perm --userconfig $build_dir/.npmrc 2>&1

-----> Build failed

       We're sorry this build is failing! You can troubleshoot common issues here:
       https://devcenter.heroku.com/articles/troubleshooting-node-deploys

       If you're stuck, please submit a ticket so we can help:
       https://help.heroku.com/

       Love,
       Heroku

To dokku@159.203.184.171:psofnyc
 ! [remote rejected] master -> master (pre-receive hook declined)

1 个答案:

答案 0 :(得分:2)

我怀疑这是失败的npm install命令:

  • enter image description here

我不是nodejs专家,但是“Killed”错误表明它的内存不足。