최근 유성 버전이 1.6으로 업데이트되었으며 응용 프로그램이 로컬에서 잘 작동합니다. 그러나 나는 그것을 영웅에게 밀어 넣었을 때 추락했다. 나는 디버그를 시도하고 노드 버전이 4.7이고 8.8로 업그레이드되어야한다는 것을 알았다.Meteor 업데이트가 heroku의 노드 버전을 업데이트하지 않습니다.
새로운 heroku 앱을 만들었고 동일한 코드를 밀어 넣었습니다. 버전 8.8.1로 노드를 설치했는데 앱이 정상적으로 작동했습니다.
저는 영웅 배치에 meteor-build-pack을 사용하고 있습니다. 나는 자세한 옵션을 사용하여 응용 프로그램을 배포하려고 다음과 같은 출력을 가지고 :
이Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 4.04 KiB | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote: + dirname -- /app/tmp/buildpacks/e8ef66c97ff87490036b0bdac9cc69618b4e878ee154e54a4c440c97fedc6dea65411bdc09dedcae43db0b412deddd38898a0dbc60489b7d8bb75b29bc0e1628/bin/compile
remote: + cd -P -- /app/tmp/buildpacks/e8ef66c97ff87490036b0bdac9cc69618b4e878ee154e54a4c440c97fedc6dea65411bdc09dedcae43db0b412deddd38898a0dbc60489b7d8bb75b29bc0e1628/bin
remote: + cd ..
remote: + pwd -P
remote: + BUILDPACK_DIR=/app/tmp/buildpacks/e8ef66c97ff87490036b0bdac9cc69618b4e878ee154e54a4c440c97fedc6dea65411bdc09dedcae43db0b412deddd38898a0dbc60489b7d8bb75b29bc0e1628
remote: + APP_CHECKOUT_DIR=/tmp/build_323a962de4ff4f5ff909303519587f02
remote: + APP_SOURCE_DIR=/tmp/build_323a962de4ff4f5ff909303519587f02
remote: + [ -n ]
remote: + [ ! -d /tmp/build_323a962de4ff4f5ff909303519587f02/.meteor ]
remote: + [ ! -d /tmp/build_323a962de4ff4f5ff909303519587f02/.meteor ]
remote: + mktemp -d /app/tmp/buildpacks/e8ef66c97ff87490036b0bdac9cc69618b4e878ee154e54a4c440c97fedc6dea65411bdc09dedcae43db0b412deddd38898a0dbc60489b7d8bb75b29bc0e1628/meteor-XXXX
remote: + METEOR_DIR=/app/tmp/buildpacks/e8ef66c97ff87490036b0bdac9cc69618b4e878ee154e54a4c440c97fedc6dea65411bdc09dedcae43db0b412deddd38898a0dbc60489b7d8bb75b29bc0e1628/meteor-UUbt
remote: + COMPILE_DIR_SUFFIX=.meteor/heroku_build
remote: + COMPILE_DIR=/tmp/build_323a962de4ff4f5ff909303519587f02/.meteor/heroku_build
remote: + [ -z 1 ]
remote: + mkdir -p /tmp/build_323a962de4ff4f5ff909303519587f02 /app/tmp/buildpacks/e8ef66c97ff87490036b0bdac9cc69618b4e878ee154e54a4c440c97fedc6dea65411bdc09dedcae43db0b412deddd38898a0dbc60489b7d8bb75b29bc0e1628/meteor-UUbt /tmp/build_323a962de4ff4f5ff909303519587f02/.meteor/heroku_build
remote: + PATH=/app/tmp/buildpacks/e8ef66c97ff87490036b0bdac9cc69618b4e878ee154e54a4c440c97fedc6dea65411bdc09dedcae43db0b412deddd38898a0dbc60489b7d8bb75b29bc0e1628/meteor-UUbt/.meteor:/tmp/build_323a962de4ff4f5ff909303519587f02/.meteor/heroku_build/bin:/usr/local/bin:/usr/bin:/bin:/tmp/codon/vendor/bin
remote: + [ -z https://peopablility-dev.herokuapp.com/ ]
remote: + [ -z https://peopablility-dev.herokuapp.com/ ]
remote: + echo -----> Installing node
remote: -----> Installing node
remote: + curl -sS --get https://semver.io/node/resolve/4.4.x
remote: + NODE_VERSION=4.4.7
remote: + NODE_URL=http://s3pository.heroku.com/node/v4.4.7/node-v4.4.7-linux-x64.tar.gz
remote: + curl -sS http://s3pository.heroku.com/node/v4.4.7/node-v4.4.7-linux-x64.tar.gz -o -
remote: + tar -zxf - -C /tmp/build_323a962de4ff4f5ff909303519587f02/.meteor/heroku_build --strip 1
remote: + export npm_config_prefix=/tmp/build_323a962de4ff4f5ff909303519587f02/.meteor/heroku_build
remote: + export CPATH=/tmp/build_323a962de4ff4f5ff909303519587f02/.meteor/heroku_build/include
remote: + export CPPPATH=/tmp/build_323a962de4ff4f5ff909303519587f02/.meteor/heroku_build/include
은 다음 (예상대로 일) 새로운 앱으로 누른 상태에서 내가 가진 출력은 같이
Counting objects: 4, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (4/4), done.
Writing objects: 100% (4/4), 4.04 KiB | 0 bytes/s, done.
Total 4 (delta 3), reused 0 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote: -----> Installing meteor
remote: Downloading Meteor distribution
remote:
remote: Meteor 1.6 has been installed in your home directory (~/.meteor).
remote:
remote: Now you need to do one of the following:
remote:
remote: (1) Add "$HOME/.meteor" to your path, or
remote: (2) Run this command as root:
remote: cp "/app/tmp/cache/meteor/.meteor/packages/meteor-tool/1.6.0/mt-os.linux.x86_64/scripts/admin/launch-meteor" /usr/bin/meteor
remote:
remote: Then to get started, take a look at 'meteor --help' or see the docs at
remote: docs.meteor.com.
remote: -----> Target Meteor version: Meteor 1.6
remote: -----> Checking if this meteor version supports --server-only
remote: -----> Using node: v8.8.1
remote: -----> and npm: 5.4.2
remote:
remote: > [email protected] install /tmp/build_21ef7e1fdbfb1b38dabd9b1b9890a874/node_modules/bcrypt
remote: > node-pre-gyp install --fallback-to-build
remote:
remote: [bcrypt] Success: "/tmp/build_21ef7e1fdbfb1b38dabd9b1b9890a874/node_modules/bcrypt/lib/binding/bcrypt_lib.node" is installed via remote
remote: added 218 packages in 9.596s
remote: -----> Building Meteor app with ROOT_URL: https://peopability-local.herokuapp.com
remote: Warning: missing space before text for line 3 of jade file "imports/ui/components/capabilityAssessmentQuestions/capabilityAssessmentQuestion.tpl.jade"
remote: Warning: missing space before text for line 17 of jade file "imports/ui/components/capabilityAssessmentQuestions/capabilityAssessmentQuestionDetail.tpl.jade"
remote: Warning: missing space before text for line 2 of jade file "imports/ui/components/organisationUser/organisationUserAskedQuestion.tpl.jade"
remote: -----> Moving built slug to /tmp/build_21ef7e1fdbfb1b38dabd9b1b9890a874/.meteor/heroku_build/app
remote: -----> Installing npm production dependencies on built slug
remote:
remote: > [email protected] install /tmp/build_21ef7e1fdbfb1b38dabd9b1b9890a874/.meteor/heroku_build/app/programs/server/node_modules/fibers
remote: > node build.js || nodejs build.js
하나를 도움을 많이 주시면 감사하겠습니다. 미리 감사드립니다!
당신이 heloku를 추진하고있는 package.json에 노드 버전이 정의 된 "엔진"이 있습니까? 그렇다면 노드 버전은 무엇입니까? – Kapil
예, package.json에 엔진을 추가했습니다. 이것도 작동하지 않았다. – abhima9yu