如何查看部署的Heroku应用程序上的文件和文件结构 [英] How to see files and file structure on a deployed Heroku app
本文介绍了如何查看部署的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屋!
查看全文