Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

普通のRailsエンジニアが【intelliJ】やってみた。

4,867 views

Published on

Published in: Engineering

普通のRailsエンジニアが【intelliJ】やってみた。

  1. 1. ᬑ㏻䛾Rails䜶䞁䝆䝙䜰䛜 䛆IntelliJ䛇 䜔䛳䛶䜏䛯䚹 ᰴᘧ఍♫䜶䜽䝇䝖䞊䞁䚷㇏⏣㝧୍
  2. 2. ௒᪥䛾䛚ヰ IntelliJ + Ruby Plugin䛷Rails㛤Ⓨ⎔ቃ䜢స䜛
  3. 3. Rails㛤Ⓨ⎔ቃ䛾䜘䛟䛒䜛ᝎ䜏 ᡭඖ䛻㛤Ⓨ⎔ቃ䛜స䜜䛺䛔 Ruby䛾䜲䞁䝇䝖䞊䝹㠃ಽ Rails䛾䜲䞁䝇䝖䞊䝹㠃ಽ RDBMS䛾䜲䞁䝇䝖䞊䝹㠃ಽ gem䛾䝡䝹䝗䛜㠃ಽ…䛸䛔䛖䛛ື䛛䛺䛔… etc... ⤖ᒁLinux䝃䞊䝞ୖ䛷emacs or vim㛤Ⓨ䛻
  4. 4. IntelliJ䛷Rails㛤Ⓨ 䛺䜣䛸䛛IDE౑䛔䛯䛔 ● 䝁䞊䝗⿵᏶ ● 㟼ⓗゎᯒ ● 䝇䝔䝑䝥ᐇ⾜ ● etc…
  5. 5. 䝸䝰䞊䝖䜲䞁䝍䝥䝸䝍 䝥䝻䝆䜵䜽䝖䛾䝁䞊䝗䜢䝸䝰䞊䝖䝩䝇䝖䛾䜲䞁䝍䝥䝸䝍 䛷ᐇ⾜䛩䜛ᶵ⬟ 㛤Ⓨ䠖䝻䞊䜹䝹䛾IntelliJ IDEA ᐇ⾜䠖䝸䝰䞊䝖䛾Linux䝃䞊䝞䞊
  6. 6. ⎔ቃᵓ⠏ᡭ㡰 䝸䝰䞊䝖: Ruby, Rails䛾䜲䞁䝇䝖䞊䝹 䝸䝰䞊䝖: Rails䝥䝻䝆䜵䜽䝖䛾సᡂ 䝻䞊䜹䝹: Deploymentඛ䛻䝸䝰䞊䝖䝩䝇䝖䜢Ⓩ㘓 䝻䞊䜹䝹: SDK䛸䛧䛶䝸䝰䞊䝖䜲䞁䝍䝥䝸䝍䜢Ⓩ㘓 䝻䞊䜹䝹: 䝥䝻䝆䜵䜽䝖సᡂ䛸㌿㏦タᐃ 䝻䞊䜹䝹: 䝸䝰䞊䝖䛾Rails䝥䝻䝆䜵䜽䝖䛸ྠᮇ
  7. 7. Ruby, Rails䛾䜲䞁䝇䝖䞊䝹 Ruby䜲䞁䝇䝖䞊䝹 RVM䛺䜚rbenv䛺䜚䛷ዲ䛝䛺䜘䛖䛻 Rails䜲䞁䝇䝖䞊䝹 ⌧᫬Ⅼ䛷Rails4௨ୖ䛾ືస䜢☜ㄆ ᪤䛻Rails䛜ືస䛩䜛䝸䝰䞊䝖⎔ቃ䛜䛒䜛䛺䜙䛭䛾䜎䜎฼⏝䛷䛝 䜛䛾䛷䚸䛣䛾సᴗ䛿㣕䜀䛧䛶኱୔ኵ
  8. 8. 䝸䝰䞊䝖䛷䝥䝻䝆䜵䜽䝖సᡂ ᐇ㝿䛻ືస䛩䜛㛤Ⓨ⎔ቃ 䛣䛾᫬Ⅼ䛷䛸䜚䛒䛘䛪䝃䞊䝞䞊䛜ື䛟䜘䛖䛻䛩䜛䛸ᴦ ᪤䛻ືస䛩䜛⎔ቃ䛜䛒䜛䛺䜙䛣䛣䜒䝇䜻䝑䝥 ౛) ୍䛛䜙స䜛ሙྜ $ rails new project_name --skip-bundle $ cd project_name $ bundle install --path=vendor/bundler
  9. 9. IntelliJ䛾タᐃ ௨ୗ䛾⎔ቃ䜢᝿ᐃ Windows7 䝯䝙䝳䞊䛾㝵ᒙ➼䛜mac∧䜔linux∧䛸␗䛺䜛㒊ศ䛜䛒䜛 㐺ᐅㄞ䜏᭰䛘䛶䛔䛯䛰䛡䜜䜀䛚䛭䜙䛟ᑐᛂྍ⬟ IntelliJ 13.1.5 Ruby Plugin ືస☜ㄆ䛿䛧䛶䛔䛺䛔䛜䚸䛚䛭䜙䛟RubyMine䛷䜒ྍ⬟
  10. 10. Deployment䛾タᐃ [File] > [Other Settings] > [Default Settings...] > [Deployment] SFTP䜢㑅ᢥ ᥋⥆ඛ䛾IP䜒䛧䛟䛿FQDN ᅔ䛳䛯䜙Autodetectᢲ䛧䛸䛟䛸䛔䛔 sshㄆド䜢⾜䛖䝴䞊䝄䞊᝟ሗ䜢ධຊ passwordㄆド䛸㘽ㄆド䜢㑅ᢥ
  11. 11. 䝸䝰䞊䝖䜲䞁䝍䝥䝸䝍䛾タᐃ(1) [File] > [Other Settings] > [Default Project Structure] > [SDKs] [+] 䜢ᢲ䛧䛶䚸[Ruby SDK] > [New Remote SDK…]䜢㑅ᢥ
  12. 12. 䝸䝰䞊䝖䜲䞁䝍䝥䝸䝍䛾タᐃ(2) [Fill from deployment server settings]䜢ᢲ䛩䛸䚸Deployment䛾タ ᐃ䜢ᘬ䛳ᙇ䛳䛶䛣䜜䜛 ᥋⥆タᐃ ᇶᮏⓗ䛻䛿Fill from... 䛷⮬ືධຊ䛥䜜䜛䜎䜎䛷኱୔ኵ 䝸䝰䞊䝖䝩䝇䝖䛾 ruby䜲䞁䝍䝥䝸䝍䛾䝟䝇䜢ᣦᐃ (䝸䝰䞊䝖䛷which ruby䛸䛛྇䛔䛶䚸䝣䝹䝟䝇䜢ྲྀᚓ䛧䜘䛖 )
  13. 13. 䝥䝻䝆䜵䜽䝖సᡂ(1) [File] > [New Project] > [Ruby on Rails] ඛ䜋䛹సᡂ䛧䛯 Remote SDK䜢㑅ᢥ
  14. 14. 䝥䝻䝆䜵䜽䝖సᡂ(2) 䝥䝻䝆䜵䜽䝖ྡ䜔䝻䞊䜹䝹䛾సᴗ䝕䜱䝺䜽䝖䝸䜢タᐃ
  15. 15. 䝸䝰䞊䝖䛸ྠᮇ (䝥䝻䝆䜵䜽䝖䜢ྑ䜽䝸䝑䜽) > [Deployment] > [Download from …]
  16. 16. Rails䝃䞊䝞䞊䛾㉳ື(1) [Run] > [Edit Configuration] > [Rails] > [Development: …] 䝸䝰䞊䝖䝃䞊䝞䛾 IP Rails䜢ືస䛥䛫䛯䛔䝫䞊䝖␒ྕ
  17. 17. Rails䝃䞊䝞䞊䛾㉳ື(2) [Run] > [Edit Configuration] > [Rails] > [Development: …] [Builder]䝍䝤䛾Run the script in context of the bundle䛻䝏䜵䝑 䜽
  18. 18. Rails䝃䞊䝞䞊䛾㉳ື(3) ື䛔䛯!
  19. 19. 䜎䛸䜑 㛤Ⓨ䛿ᡭඖ 㛤Ⓨ䛷౽฼䛺ᶵ⬟䛿IntelliJ䛷 䝁䞊䝗⿵᏶ 㟼ⓗゎᯒ 䝔䝇䝖ᐇ⾜ etc… ᐇ⾜䛿䝃䞊䝞䞊䛷 ᪤䛻ື䛔䛶䛔䜛ᐇ⾜⎔ቃ䛜䛭䛾䜎䜎౑䛘䜛

×