How to use same terminal window after using “rails server” command?

谁都会走 提交于 2019-11-29 17:56:28

I don't believe there is a way to do the thing you are specifically asking for.

However, I use Iterm2 which allows me to open multiple terminal windows in one window, either by splitting my iTerm2 window or by creating multiple tabs. That way I can just make the terminals that are holding rails server and my development.log tail very small unless something interesting happens in them.

I use screen, you can also use TMUX but they are window managers in terminal and you can create multiple windows in same terminal window :)

Read up on them at WikiVS as that might help you :) http://www.wikivs.com/wiki/Screen_vs_tmux

Screen: http://www.gnu.org/software/screen/ TMUX: http://tmux.sourceforge.net/

So you can easily switch and maintain same terminal window. You can't obviously use the EXACT same window that rails server running but it's close enough without having to do the searching for the PID.

drum

You can type: rails s &. I'm not sure if this is what you meant.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!