简体   繁体   English

我必须将捆绑安装到tmux的每个窗格

[英]I have to `bundle install` to every pane of tmux

I'm using tmux for rails project. 我正在将tmux用于Rails项目。
The purpose is to split pane. 目的是拆分窗格。 Such as, one pane for text editor, one pane for execute 例如,一个窗格用于文本编辑器,一个窗格用于执行

rails s -b 0.0.0.0

etc. 等等
It was very convenient until now. 到现在为止还是很方便的。

Every new pane has forgotten that i executed: 每个新窗格都忘记了我执行的内容:

bundle install 

So that they required me to run bundle install again, when i create a new pane. 因此,当我创建一个新窗格时,他们需要我再次运行bundle install
This is a huge pain. 这是一个巨大的痛苦。 Somehow i want them to know that i executed it , but i don't know how to do it. 我以某种方式希望他们知道我执行了它,但是我不知道该怎么做。

Thank you for your help. 谢谢您的帮助。


Enviroment 环保环境

  • Mac mini (Mid 2011) OS X Yosemite Mac mini(2011年中)OS X Yosemite
  • Terminal (Not iTerm2) 终端(不是iTerm2)
  • tmux -V -> 1.9a tmux -V-> 1.9a
  • ruby -v -> ruby 2.3.1p112 红宝石-v->红宝石2.3.1p112
  • rails -v -> Rails 4.2.7.1 rails -v-> Rails 4.2.7.1
  • rvm -v -> rvm 1.27.0 rvm -v-> rvm 1.27.0

Note: I installed ruby 2.3.1 on a pane, but other new panes show ruby 2.1.1 .... 注意:我在窗格上安装了ruby 2.3.1,但是其他新窗格显示ruby 2.1.1...。

I don't know why but after reinstalled ruby and set latest ruby version as default, problem solved. 我不知道为什么,但是在重新安装ruby并将最新的ruby版本设置为默认版本后,问题解决了。

1) Installing ruby 1)安装红宝石
I followed this site. 我关注了这个网站。
http://usabilityetc.com/articles/ruby-on-mac-os-x-with-rvm/ http://usabilityetc.com/articles/ruby-on-mac-os-x-with-rvm/

2) Setting latest ruby version 2)设置最新的红宝石版本

$ rvm --default use 2.3.1

Attention the order. 注意顺序。 I think you should execute bundle install first, then split the pane. 我认为您应该先执行bundle install ,然后拆分窗格。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 为什么每次将sag sva放入我的游民箱时都必须运行捆绑安装 - Why do I have to run bundle install every time I vagrant ssh into my vagrant box 我在用铁轨安装每个捆绑包时遇到麻烦。 如何修复 - I have trouble every bundle install with my rails. How to fix it bundle install 认为它使用的是我没有的 ruby​​ 版本 - bundle install thinks it is using a ruby version I don't have 我是否必须在每个新项目上安装Rails? - Do I have to install Rails on every new project? 每当我创建一个新的Rails应用程序时,系统花大量时间进行“捆绑安装”是否正常? - Is it normal for the system to take a long time in “bundle install” every time I create a new rails app? 没有检查出''宝石(在主人身上)。 首先运行'bundle install'“每次运行rake db:migrate - Getting “'gem (at master) is not checked out. Run 'bundle install' first” every time I run rake db:migrate 为什么每次打开新终端时都要安装Rails? - Why do I have to install Rails every time I open a new terminal? 我有一条带有“ i18n_data-0.8.0 ”的错误消息,并且 Bundle install 命令没有启动任何东西 - I have an error message with " i18n_data-0.8.0 " and Bundle install command doesn't launch anything 我刚刚在 rails 上安装了 ruby 并且我创建了一个文件夹但是当我运行 rails s 时它会这样说。 我试过捆绑安装并从论坛搜索 - I just installed ruby on rails and i have created a folder but when i run rails s its says this. i have tried bundle install and searched from forums 如何撤消vendor / gems bundle install - How to I undo the vendor/gems bundle install
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM