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 中有哪些文本编辑器可用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,WP2
Heroku bash shell 中有哪些文本编辑器可用? 为WP2原创文章,链接:https://www.wp2.cn/other/heroku-bash-shell-%e4%b8%ad%e6%9c%89%e5%93%aa%e4%ba%9b%e6%96%87%e6%9c%ac%e7%bc%96%e8%be%91%e5%99%a8%e5%8f%af%e7%94%a8/