Я создал веб-приложение на основе Node js и MongoDB (используя Mon go Atlas для операций с данными на стороне сервера). Я пытался развернуть приложение на heroku, для чего я следовал документации heroku. Приложение было успешно развернуто с помощью терминала, но когда я открываю ссылку, появляется следующая ошибка.
URL-адрес приложения: https://stormy-brushlands-50060.herokuapp.com/
Ошибка: Ошибка приложения В приложении произошла ошибка, и ваша страница не может быть обслужена. Если вы являетесь владельцем приложения, проверьте свои журналы. Вы можете сделать это из интерфейса командной строки Heroku с помощью команды heroku logs --tail
Ниже приведена подробная информация о приложении, развернутом с помощью терминала:
$ git push heroku master
Enumerating objects: 2201, done.
Counting objects: 100% (2201/2201), done.
Delta compression using up to 4 threads
Compressing objects: 100% (2109/2109), done.
Writing objects: 100% (2201/2201), 2.24 MiB | 319.00 KiB/s, done.
Total 2201 (delta 513), reused 0 (delta 0), pack-reused 0
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Node.js app detected
remote:
remote: -----> Creating runtime environment
remote:
remote: NPM_CONFIG_LOGLEVEL=error
remote: NODE_ENV=production
remote: NODE_MODULES_CACHE=true
remote: NODE_VERBOSE=false
remote:
remote: -----> Installing binaries
remote: engines.node (package.json): 12.16.3
remote: engines.npm (package.json): unspecified (use default)
remote:
remote: Resolving node version 12.16.3...
remote: Downloading and installing node 12.16.3...
remote: Using default npm version: 6.14.4
remote:
remote: -----> Installing dependencies
remote: Prebuild detected (node_modules already exists)
remote: Rebuilding any native modules
remote: body-parser@1.18.3 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/body-parser
remote: bytes@3.0.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/bytes
remote: content-type@1.0.4 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/content-type
remote: debug@2.6.9 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/debug
remote: ms@2.0.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/ms
remote: depd@1.1.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/depd
remote: http-errors@1.6.3 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/http-errors
remote: inherits@2.0.3 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/inherits
remote: setprototypeof@1.1.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/setprototypeof
remote: statuses@1.5.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/statuses
remote: iconv-lite@0.4.23 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/iconv-lite
remote: safer-buffer@2.1.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/safer-buffer
remote: on-finished@2.3.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/on-finished
remote: ee-first@1.1.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/ee-first
remote: qs@6.5.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/qs
remote: raw-body@2.3.3 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/raw-body
remote: unpipe@1.0.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/unpipe
remote: type-is@1.6.16 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/type-is
remote: media-typer@0.3.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/media-typer
remote: mime-types@2.1.18 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mime-types
remote: mime-db@1.33.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mime-db
remote: ejs@2.6.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/ejs
remote: express@4.16.3 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/express
remote: accepts@1.3.5 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/accepts
remote: negotiator@0.6.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/negotiator
remote: array-flatten@1.1.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/array-flatten
remote: body-parser@1.18.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/express/node_modules/body-parser
remote: iconv-lite@0.4.19 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/express/node_modules/iconv-lite
remote: qs@6.5.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/express/node_modules/qs
remote: raw-body@2.3.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/express/node_modules/raw-body
remote: http-errors@1.6.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/express/node_modules/raw-body/node_modules/http-errors
remote: depd@1.1.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/express/node_modules/raw-body/node_modules/depd
remote: setprototypeof@1.0.3 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/express/node_modules/raw-body/node_modules/setprototypeof
remote: statuses@1.4.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/express/node_modules/statuses
remote: content-disposition@0.5.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/content-disposition
remote: cookie@0.3.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/cookie
remote: cookie-signature@1.0.6 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/cookie-signature
remote: encodeurl@1.0.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/encodeurl
remote: escape-html@1.0.3 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/escape-html
remote: etag@1.8.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/etag
remote: finalhandler@1.1.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/finalhandler
remote: parseurl@1.3.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/parseurl
remote: statuses@1.4.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/finalhandler/node_modules/statuses
remote: fresh@0.5.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/fresh
remote: merge-descriptors@1.0.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/merge-descriptors
remote: methods@1.1.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/methods
remote: path-to-regexp@0.1.7 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/path-to-regexp
remote: proxy-addr@2.0.3 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/proxy-addr
remote: forwarded@0.1.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/forwarded
remote: ipaddr.js@1.6.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/ipaddr.js
remote: range-parser@1.2.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/range-parser
remote: safe-buffer@5.1.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/safe-buffer
remote: send@0.16.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/send
remote: destroy@1.0.4 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/destroy
remote: mime@1.4.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mime
remote: statuses@1.4.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/send/node_modules/statuses
remote: serve-static@1.13.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/serve-static
remote: utils-merge@1.0.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/utils-merge
remote: vary@1.1.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/vary
remote: lodash@4.17.11 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/lodash
remote: mongoose@5.3.4 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mongoose
remote: async@2.6.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/async
remote: bson@1.0.9 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/bson
remote: kareem@2.3.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/kareem
remote: lodash.get@4.4.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/lodash.get
remote: mongodb@3.1.6 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mongodb
remote: mongodb-core@3.1.5 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mongodb-core
remote: bson@1.1.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mongodb-core/node_modules/bson
remote: require_optional@1.0.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/require_optional
remote: resolve-from@2.0.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/resolve-from
remote: semver@5.6.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/semver
remote: safe-buffer@5.1.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mongodb-core/node_modules/safe-buffer
remote: safe-buffer@5.1.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mongodb/node_modules/safe-buffer
remote: mongoose-legacy-pluralize@1.0.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mongoose-legacy-pluralize
remote: mpath@0.5.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mpath
remote: mquery@3.2.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mquery
remote: bluebird@3.5.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/bluebird
remote: debug@3.1.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mquery/node_modules/debug
remote: regexp-clone@0.0.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/regexp-clone
remote: safe-buffer@5.1.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mquery/node_modules/safe-buffer
remote: sliced@1.0.1 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/sliced
remote: safe-buffer@5.1.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/mongoose/node_modules/safe-buffer
remote: memory-pager@1.1.0 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/memory-pager
remote: saslprep@1.0.2 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/saslprep
remote: sparse-bitfield@3.0.3 /tmp/build_064ef5e396f7179e58543761ad9b7a9c/node_modules/sparse-bitfield
remote: Installing any new modules (package.json)
remote: audited 85 packages in 0.944s
remote: found 3 high severity vulnerabilities
remote: run `npm audit fix` to fix them, or `npm audit` for details
remote:
remote: -----> Build
remote:
remote: -----> Caching build
remote: - node_modules
remote:
remote: -----> Pruning devDependencies
remote: audited 85 packages in 0.969s
remote: found 3 high severity vulnerabilities
remote: run `npm audit fix` to fix them, or `npm audit` for details
remote:
remote: -----> Build succeeded!
remote: -----> Discovering process types
remote: Procfile declares types -> web
remote:
remote: -----> Compressing...
remote: Done: 24.6M
remote: -----> Launching...
remote: Released v3
remote: https://stormy-brushlands-50060.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy... done.
To https://git.heroku.com/stormy-brushlands-50060.git
* [new branch] master -> master
Любой Решение?