Node.js Dokku Buil失败-拒绝预接收挂钩
几个小时来我一直在努力解决这个问题,但我刚刚在我的服务器上更新了Docker,现在我无法通过“git push dokku origin master”向它推送任何新内容 这就是我得到的信息。请帮忙Node.js Dokku Buil失败-拒绝预接收挂钩,node.js,heroku,docker,digital-ocean,dokku,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 K
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)
我怀疑是
npm install
命令失败了:
我不是nodejs专家,但“Killed”错误表明它的内存不足 我怀疑是
npm install
命令失败了:
我不是nodejs专家,但“Killed”错误表明它的内存不足 这肯定是个问题,您至少需要添加更多的交换内存来处理
npm安装运行。这不会发生在Heroku上,因为他们使用与您配置的dyno不同的系统来构建slug。这肯定是问题所在,您至少需要添加更多的交换内存来处理npm安装
运行。这不会发生在Heroku上,因为他们使用与您配置的dyno不同的系统来构建slug。