简体   繁体   English

使用 Python 在 Heroku 云中推送/上传文件

[英]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.

相关问题 使用 Python 将文件上传到 Google Cloud Storage Bucket 子目录 - Upload File to Google Cloud Storage Bucket Sub Directory using Python 在Heroku上运行Python Worker-推送失败 - Running Python Worker on Heroku - Push Failed 谷歌云功能 python 脚本创建存储桶 - 不上传文件 - Google cloud functions python script creates bucket - doesn't upload files 想要使用 OAuth Python 将文件上传和下载到 Google Bucket - Want to Upload and download files to Google Bucket Using OAuth Python 无法使用 python 代码从存储容器上传/下载文件 - Not able to upload/download files from Storage containers using python code 如何使用Python OneDrive SDK将文件上传到OneDrive? - How to upload files to OneDrive using Python OneDrive sdk? 如何使用 Python 将文件上传到 dmsf Redmine? - How can I upload files to dmsf Redmine using Python? python中无法使用Google Drive上传文件 API - Unable to upload files using Google Drive API in python 如何使用 python 创建图像 _FILES 数组以上传图像 - how to create an image _FILES array using python to upload image 使用 boto3 python 在 s3 中上传文件文件夹和子文件夹 - Upload files folder and subfolder in s3 using boto3 python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM