Heroku部署卡住[NPM_CONFIG_LOGLEVEL =错误]

时间:2017-08-28 14:41:22

标签: php heroku

我遇到了问题:我试图在heroku上部署一个php网站,但是出错了。

NPM_CONFIG_LOGLEVEL=error 我不确定我该做什么......

$ git push heroku master
Counting objects: 9, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (9/9), done.
Writing objects: 100% (9/9), 53.89 KiB | 0 bytes/s, done.
Total 9 (delta 7), reused 0 (delta 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:        NPM_CONFIG_PRODUCTION=true
remote:        NODE_VERBOSE=false
remote:        NODE_ENV=production
remote:        NODE_MODULES_CACHE=true
remote: 
remote: -----> Installing binaries
remote:        engines.node (package.json):  unspecified
remote:        engines.npm (package.json):   unspecified (use default)
remote:        
remote:        Resolving node version 6.x...
remote:        Downloading and installing node 6.11.2...
remote:        Using default npm version: 3.10.10
remote: 
remote: -----> Restoring cache
remote:        Loading 2 from cacheDirectories (default):
remote:        - node_modules
remote:        - bower_components (not cached - skipping)
remote: 
remote: -----> Building dependencies
remote:        Installing node modules (package.json)
remote: 
remote: -----> Caching build
remote:        Clearing previous node cache
remote:        Saving 2 cacheDirectories (default):
remote:        - node_modules
remote:        - bower_components (nothing to cache)
remote: 
remote: -----> Build succeeded!
remote: -----> App not compatible with buildpack: https://codon-        buildpacks.s3.amazonaws.com/buildpacks/heroku/php.tgz
remote:        More info:                 
https://devcenter.heroku.com/articles/buildpacks#detection-        failure
remote: 
remote:  !     Push failed
remote: Verifying deploy...
remote: 
remote: !    Push rejected to tamsan-storage.
remote: 
To https://git.heroku.com/tamsan-storage.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/hoge.git'

1 个答案:

答案 0 :(得分:0)

尝试

heroku buildpacks:clear

它将让Heroku自动检测您的buildpacks(如果可能/适用)

另一种选择是从Heroku网站的应用程序设置页面中选择它

enter image description here

enter image description here

如果它不起作用,请告诉我们您要部署哪种类型的应用程序。