无法使用heroku

时间:2018-05-03 20:35:21

标签: heroku jhipster jhipster-registry

我尝试使用按钮deploy to heroku部署默认的jhipster注册表,但失败了。

有人可以帮我吗?

参数:

应用名称 MyApp的注册处

选择地区美国

JHIPSTER_PASSWORD ******

JAVA_OPTS -Xmx256m -Xss512k -Dfile.encoding = UTF-8

MAVEN_CUSTOM_OPTS -Pprod,heroku -DskipTests

NPM_CONFIG_PRODUCTION

日志:

   binding.target.mk:115: recipe for target 'Release/obj.target/binding/src/binding.o' failed
   make: *** [Release/obj.target/binding/src/binding.o] Error 1
   make: Leaving directory '/tmp/build_e5224961c3b8d6585d4f090ac485ceae/node_modules/node-sass/build'
   gyp ERR! build error
   gyp ERR! stack Error: `make` failed with exit code: 2
   gyp ERR! stack     at ChildProcess.onExit (/tmp/build_e5224961c3b8d6585d4f090ac485ceae/node_modules/node-gyp/lib/build.js:285:23)
   gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
   gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:225:12)
   gyp ERR! System Linux 4.4.0-1014-aws
   gyp ERR! command
   "/tmp/build_e5224961c3b8d6585d4f090ac485ceae/.heroku/node/bin/node"
   "/tmp/build_e5224961c3b8d6585d4f090ac485ceae/node_modules/node-gyp/bin/node-gyp.js"
   "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags="
   "--libsass_ldflags=" "--libsass_library="
   gyp ERR! cwd > 
   /tmp/build_e5224961c3b8d6585d4f090ac485ceae/node_modules/node-sass
   gyp ERR! node -v v10.0.0
   gyp ERR! node-gyp -v v3.6.0
   gyp ERR! not ok
   Build failed with error code: 1
   -----> Build failed

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

   Some possible problems:

   - Dangerous semver range (>) in engines.node
   https://devcenter.heroku.com/articles/nodejs-support#specifying-a-node-js-version

   Love,
   Heroku
     !     Push rejected, failed to compile Node.js app.  !     Push failed

2 个答案:

答案 0 :(得分:1)

此问题是由与节点10不兼容造成的。它由J pull request在JHipster注册码中修复。 Deploy to Heroku按钮现在可以正常工作

答案 1 :(得分:0)

此问题是由node-saas引起的,它无法为您的环境下载有效的二进制文件,因此它试图从头开始重建C ++代码,这似乎在Heroku运行器中不可用。

请升级到node-saas v4.9.0,这是第一个支持节点10的版本:https://github.com/sass/node-sass/releases/tag/v4.9.0