[英]Push/upload files in Heroku cloud using Python
I have a few csv, jpg and png files in my local computer.我的本地计算机中有一些 csv、jpg 和 png 文件。
I need to upload/push these files to Heroku cloud platform using Python.我需要使用 Python 将这些文件上传/推送到 Heroku 云平台。
Can somebody please let me know how do we go about doing this in Python?有人可以让我知道我们如何在 Python 中执行此操作吗?
You can push something to Heroku using git push from your git-shell.您可以使用 git-shell 中的 git push 将某些内容推送到 Heroku 。 If you want to upload files or something to Heroku then you create an app from given stacks of Heroku.如果您想将文件或其他内容上传到 Heroku,那么您可以从给定的 Heroku 堆栈创建一个应用程序。 Then place these files in that app and then push them to Heroku.然后将这些文件放在该应用程序中,然后将它们推送到 Heroku。 As per my knowledge, you can directly upload images to a new Heroku dyno as builds will famil automatically.据我所知,您可以直接将图像上传到新的 Heroku 测功机,因为构建会自动生成。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.