javascript - unable to push node.js app on heroku -
i tried pushing node.js application on heroku but. no default language detected app. tried heroku buildpacks:set heroku/nodejs. still unable push.
counting objects: 31, done. delta compression using 4 threads. compressing objects: 100% (24/24), done. writing objects: 100% (31/31), 5.37 kib | 0 bytes/s, done. total 31 (delta 3), reused 0 (delta 0) remote: compressing source files... done. remote: building source: remote: remote: ! no default language detected app. remote: hint: occurs when heroku cannot detect buildpack use application automatically. remote: see https://devcenter.heroku.com/articles/buildpacks remote: remote: ! push failed remote: verifying deploy... remote: remote: ! push rejected radiant-cliffs-91678. remote: https://git.heroku.com/radiant-cliffs-91678.git ! [remote rejected] master -> master (pre-receive hook declined) error: failed push refs 'https://git.heroku.com/radiant-cliffs-91678.git'
based on logs, looks heroku can't detect language of app.
for node.js, need either create package.json
file in root project (using npm init
), or can create procfile
in root of project specify language:
web: node index.js
Comments
Post a Comment