【问题标题】:Dokku Buil Failed - Pre-receive hook declinedDokku Buil 失败 - 预接收挂钩被拒绝
【发布时间】:2016-08-26 00:24:32
【问题描述】:

数小时以来一直试图解决这个问题,但我刚刚在我的服务器上更新了 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)

【问题讨论】:

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


    【解决方案1】:

    我怀疑是 npm install 命令失败了:

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

    【讨论】:

    • 这绝对是问题所在,您至少需要添加更多交换内存来处理npm install 运行。这不会在 Heroku 上发生,因为它们使用与您配置的 dyno 不同的系统来构建 slug。
    猜你喜欢
    • 1970-01-01
    • 2012-01-03
    • 2020-07-19
    • 2012-03-21
    • 2020-03-12
    • 2015-04-03
    • 2019-10-16
    • 2022-11-10
    • 1970-01-01
    相关资源
    最近更新 更多