Python 3.7.0 Heroku buildpack问题 [英] Python 3.7.0 Heroku buildpack issue

查看:69
本文介绍了Python 3.7.0 Heroku buildpack问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过一些有相同问题的人,但没有任何建议起作用.我正在尝试将一个愚蠢的项目部署到Heroku,但没有任何效果.

I've read some people with the same issue, but nothing suggested has worked. I'm trying to deploy a silly project to Heroku but nothing is working.

在此行下面,您会看到以下消息:

Below this lines you can see the message:

书写对象:100%(100/100),55.42 MiB |625.00 KiB/s,已完成.总计100(增量19),重用4(增量0)远程:压缩源文件...完成.远程:构建源:

Writing objects: 100% (100/100), 55.42 MiB | 625.00 KiB/s, done. Total 100 (delta 19), reused 4 (delta 0) remote: Compressing source files... done. remote: Building source:

计数对象:完成100个.增量压缩最多使用4个线程.压缩对象:100%(94/94),已完成.书写对象:100%(100/100),55.42 MiB |625.00 KiB/s,已完成.总计100(增量19),重用4(增量0)远程:压缩源文件...完成.

Counting objects: 100, done. Delta compression using up to 4 threads. Compressing objects: 100% (94/94), done. Writing objects: 100% (100/100), 55.42 MiB | 625.00 KiB/s, done. Total 100 (delta 19), reused 4 (delta 0) remote: Compressing source files... done.

应用程序与buildpack不兼容: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz !推送失败

App not compatible with buildpack: https://buildpack-registry.s3.amazonaws.com/buildpacks/heroku/python.tgz ! Push failed

这是我的github存储库,以防万一有人想看代码:宠物vs狗

This is my github repository, just in case someone wants to see the code: Pets vs Dogs

推荐答案

更新:问题出在结构本身.我必须将requirements.txt和Procfile放在根目录中.

UPDATE: the problem was the structure itself. I had to place the requirements.txt and Procfile at the root directory.

这篇关于Python 3.7.0 Heroku buildpack问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆