Bash on Ubuntu on Windows를 이용하여 Windows상의 Rubymine에서 개발하기 위한 환경 구축 방법
개요
어제의 「CentOS7 서버를 Samba 마운트하고 Windows상의 Rubymine으로 개발하기 위한 환경 구축 방법」이라고 하는 기사를 쓴 후에, 같은 것은 Bash on Ubuntu on Windows상에서도 할 수 있다고 생각해 내가 할 수 있었기 때문에 기사로 만들었다 :-P
사전 준비 · 전제
우분투에서 IP 주소 확인
$ ifconfig
================================================
※ 表示例
eth0 Link encap:Ethernet HWaddr 12:34:56:60:00:0e
inet addr:10.136.12.11 Bcast:10.136.12.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
...
================================================
※ Run 설정의 IP는 「0.0.0.0」이나 「127.0.0.1」에서는 IP의 Binding으로 이끼하므로 ifconfig에서 확인할 수 있는 IP를 이용한다(여기에서는 10.136.12.11)
작업 내용
Rubymine 설정
Rubymine을 시작하고 "config"를 클릭하십시오.

"Ruby SDK and Gems"를 선택하고 녹색 "+"를 클릭 한 다음 "New remote"를 클릭하십시오.

라디오 버튼으로 "SSH Credentials"를 체크하고, Host에 서버의 IP 주소, User name, Password에 Linux 사용자의 정보를 넣고 Ruby interpreter path의 "..."를 클릭

예를 클릭

/home/tfukui/.rbenv/versions/2.3.2/bin/ruby를 선택하고 확인을 클릭합니다.

확인을 클릭

ruby-2.3.2를 선택한 상태에서 녹색 ✔ 버튼을 누른 다음 "Edit Path Mappings (깜박임 표시 아이콘)"을 클릭하십시오.

녹색 +를 클릭한 후 Local Path에서 '...'를 클릭합니다.

E:\Rubymine\blog
를 선택하고 확인을 클릭합니다.

Remote Path에서 "..."를 클릭

/home/tfukui/Rubymine/blog
를 선택하고 확인을 클릭합니다.

확인을 클릭

확인을 클릭

Open을 클릭

E:\Rubymine\blog
를 선택하고 확인을 클릭합니다.

Run 메뉴에서 Edit Configurations를 클릭합니다.

IP 주소 : 서버의 IP 주소 (여기서는 10.136.12.11)를 입력하고 Bundler 탭을 클릭하십시오.

Run the script in context of the bundle (bundle exec) 확인란을 선택하고 확인을 클릭합니다.

오른쪽 하단에 표시된 "RubyMine Gem Manager"의 "install"링크를 클릭하십시오.

--path vendor/bundle
를 입력하고 install을 클릭합니다.
콘솔 화면에서 번들 설치가 완료되었는지 확인

실행하다

콘솔에 표시된 주소 (여기서는
http://10.136.12.11:3000
)를 확인하여 브라우저에서 액세스
Rails 화면이 표시됨

실행 중지

마지막으로
Windows의 에코시스템내(?)만으로 Ruby의 개발이 쉬워지는 것은 고맙습니다.
자신의 환경에서는 약간 동작이 모사리하고 있습니다. Bash on Ubuntu on Windows의 미래에 기대됩니다 :-)
Reference
이 문제에 관하여(Bash on Ubuntu on Windows를 이용하여 Windows상의 Rubymine에서 개발하기 위한 환경 구축 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다
https://qiita.com/ftakao2007/items/b1b8a24d02096f800f24
텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)
Reference
이 문제에 관하여(Bash on Ubuntu on Windows를 이용하여 Windows상의 Rubymine에서 개발하기 위한 환경 구축 방법), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/ftakao2007/items/b1b8a24d02096f800f24텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)