Heroku不会将我的Laravel应用程序识别为PHP应用程序,也不会进行
发布时间:2020-12-14 19:41:02 所属栏目:大数据 来源:网络整理
导读:我正在尝试在Heroku上发布我的Laravel应用程序. 我从.gitignore中排除了composer.lock文件,并创建了一个包含的Procfile web: vendor/bin/heroku-php-apache2 public 我创建了我的应用程序 heroku create myapp;git push heroku master; 然后我得到以下输出:
我正在尝试在Heroku上发布我的Laravel应用程序.
我从.gitignore中排除了composer.lock文件,并创建了一个包含的Procfile web: vendor/bin/heroku-php-apache2 public 我创建了我的应用程序 heroku create myapp; git push heroku master; 然后我得到以下输出: git -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags heroku master:master Pushing to https://git.heroku.com/myapp.git POST git-receive-pack (1914 bytes) remote: Compressing source files... done. remote: Building source: remote: remote: -----> Node.js app detected remote: -----> Resetting git environment remote: remote: PRO TIP: Specify a node version in package.json remote: See https://devcenter.heroku.com/articles/nodejs-support remote: remote: -----> Defaulting to latest stable node: 0.10.35 remote: -----> Downloading and installing node remote: -----> Exporting config vars to environment remote: -----> Installing dependencies remote: npm WARN package.json myapp@0.0.0 No repository field. remote: -----> Cleaning up node-gyp and npm artifacts remote: -----> Building runtime environment remote: -----> Discovering process types remote: Procfile declares types -> web remote: remote: -----> Compressing... done,9.6MB remote: -----> Launching... done,v5 remote: https://myapp.herokuapp.com/ deployed to Heroku remote: remote: Verifying deploy... done. To https://git.heroku.com/myapp.git 5b1c663..0dff021 master -> master updating local tracking ref 'refs/remotes/heroku/master' Completed successfully 如果我浏览到我的应用程序,但是我收到应用程序错误. app[web.1]: bash: vendor/bin/heroku-php-apache2: No such file or directory 我怀疑,不知何故,Heroku没有做作曲家安装,因为它不在我的git输出中,也许它甚至没有认识到我的应用程序是一个程序? 我在这里错过了什么?
我相信我找到了它.应该更好地读取行(“检测到Node.js app”).
通过触发此命令解决: heroku config:add BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-php 并再次推动 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |