如何查看部署的Heroku应用程序上的文件和文件结构 [英] How to see files and file structure on a deployed Heroku app

查看:455
本文介绍了如何查看部署的Heroku应用程序上的文件和文件结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Heroku上部署的客户端应用程序允许用户将图片上传到Heroku。我想测试一下我为删除图像所做的更改,因此我需要一种方法来查看Heroku上的文件夹结构状态,以确保图像能够成功删除文件系统。



我试过 -

  $ heroku run bash --app< appName> 
〜$ pwd
〜$ cd<图片文件夹路径>

但我只在这里看到图片,我随应用程序一起上传,而不是通过客户端上传的图片



我做错了什么?

解决方案

我可以使用这个命令做到这一点

  heroku login 
heroku run bash
$ cd app

code>

而文件夹 app 是您的文件。


My client app that is deployed on Heroku allows the user to upload images onto Heroku. I wanted to test out a change I made to delete images, so I need a way to see the state of the folder structure on Heroku to ensure the images are being deleted successfully of the file system.

I tried -

$ heroku run bash --app <appName>
~$ pwd
~$ cd <path to images folder>

but I only see images here that I uploaded along with the app, not what was uploaded through the client app.

What am I doing wrong?

解决方案

I can do with this commands

heroku login
heroku run bash
$ cd app

And in the folder app are your files.

这篇关于如何查看部署的Heroku应用程序上的文件和文件结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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