如何在 Heroku bash 中为新手查看和编辑文件?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/26765327/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-18 11:43:21  来源:igfitidea点击:

How to view and edit files in Heroku bash for noobs?

bashherokutext-editor

提问by Sashko Lykhenko

I found catand edbut they are too tough for me to use. Precisely, catdoes not view big files whole and edis a single line one! Are there any more ubuntu (humanistic) tools in Heroku bash?

我找到了cated但它们对我来说太难用了。确切地说,cat不查看整个大文件并且ed是单行文件!Heroku bash 中是否还有更多 ubuntu(人文)工具?

回答by rdegges

You should not be using Heroku to view or edit files directly -- Heroku will delete the files you're working on randomly, THEY WILL NEVER BE SAVED!

你不应该直接使用 Heroku 来查看或编辑文件——Heroku 会随机删除你正在处理的文件,它们永远不会被保存

If you'd like to work on a terminal session, you should instead look at renting a ubuntu server from a company like DigitalOceanor Amazonwho specialize in this sort of thing -- or, just install a proper terminal client on your computer.

如果您想在终端会话上工作,您应该考虑从DigitalOceanAmazon 等专门从事此类事情的公司租用 ubuntu 服务器——或者,只需在您的计算机上安装一个合适的终端客户端。