Heroku bash shell 中有哪些文本编辑器可用? [英] What text editor is available in Heroku bash shell?
问题描述
我正在尝试更新基于 Cedar 的 Heroku 应用程序中的 httpd.conf.我用
I'm trying to update httpd.conf in my Cedar-based Heroku app. I got to my Heroku bash with
heroku run bash
并在apache下找到conf目录.但是当我尝试打开任何编辑器 vi、vim 或 emacs 时,我找不到任何这些程序.你如何在 Heroku 上编辑 conf 文件?
and found the conf dir under apache. But when I try to open any editor vi, vim, or emacs, I can't find any of these programs. How do you edit conf files on Heroku?
推荐答案
我最近翻了原始要点 进入 heroku cli 插件.
只需安装:
heroku 插件:安装 https://github.com/naaman/heroku-vim
并使用:
heroku vim
heroku vim
命令会让你进入一个 bash shell,vim
安装在你的 $PATH
上.你所要做的就是重新训练你的手指输入 heroku vim
而不是 heroku run bash
.
The heroku vim
command will drop you into a bash shell with vim
installed on your $PATH
. All you have to do is retrain your fingers to type heroku vim
instead of heroku run bash
.
这篇关于Heroku bash shell 中有哪些文本编辑器可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!