ããã«ã¡ã¯ãæ°è¦éçºãã¼ã ã®åè(@kachina_t)ã§ãã ç¾å¨ãOAuthã使ãèªè¨¼å¦çãå¤é¨ã¢ããªã§å®æ½ããã¢ããªã®éçºããã¦ãã¾ãã
ã¡ãã£ã¨ãããããã®ã§ããããã®ããã¸ã§ã¯ãã§ã¯ éçºç°å¢ã§2ã¤ã®Railsã¢ããªã±ã¼ã·ã§ã³ãèµ·åããå¿ è¦ããã MacbookAirã®ãã¡ã³ã«éçãæãã¦ããç§ã¯ éçºç°å¢ãEC2ã«ç§»è¡ããèªãã·ã³ã«å°ãã§ãã©ã¯ãããã¦ãããããªããã ã¨æãç«ã¡ã¾ããã
ä»åã®æ稿ã¯ã¿ã¤ãã«ã®ã¨ãããéçºç°å¢ãEC2ã«ç§»è¡ããï¼ãã§ãã
ããã§ã¯ãã£ãã
移è¡åã®ç°å¢ã«ã¤ãã¦
ã¾ãã移è¡åã®ç°å¢ãç´¹ä»ãããã¨æãã¾ãã ãããã¯ã¢ããªã±ã¼ã·ã§ã³ããã£ã±ãèµ·åããã®ããã©ã¤ãªã®ã§ã¿ã¼ããã«ã§ã§ãããã¨ã¯ ãã¡ãã§ã¤ã«ãã¨ã«ãã¦ãã¾ãã
- ãTwitterã¯ã©ã¤ã¢ã³ãã â earthquake
- ãRSSãªã¼ãã¼ã â newsbutter
ããã«ããã常æèµ·åãã¦ããã¢ããªã¯ããã©ã¦ã¶ãã¨ãã¿ã¼ããã«ãã®ã¿ã¨ãªãã¾ãã å ·ä½çãªä½æ¥ç°å¢ã¯ä»¥ä¸ã®ã¤ã¡ã¼ã¸ã¨ãªãã¾ãã
移è¡ã®ã¤ã¡ã¼ã¸
å ç¨ã®ç°å¢ãããRailséçºé¨åãEC2ã¤ã³ã¹ã¿ã³ã¹ã¸ç§»è¡ãããã¨æãã¾ãã
ãã£ããã¨
- EC2ã¤ã³ã¹ã¿ã³ã¹ã®èµ·å
- Yumããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ï¼zshãMySQLãVimãGitï¼
- Railså®è¡ç°å¢ã®æ§ç¯
- zshè¨å®ãã¡ã¤ã«ã®è»¢é
- vimè¨å®ãã¡ã¤ã«ã®è»¢é
- sshç§å¯éµãã¡ã¤ã«ã®è»¢éï¼GitHubèªè¨¼ç¨ï¼
ã¨ãã«èª¬æã®å¿ è¦ããªããããç°¡åãªä½æ¥ãªã®ã§è©³ç´°ã¯å²æããã®ã§ãã ãªãã¨ãããã ãã§ç§»è¡ãå®äºãã¦ãã¾ãã¾ããã
ãã®å¾
ç¾å¨ãä¸è¨ã®æ§æã«ç§»è¡ãã¦1ã¶æè¿ãçµã¤ã®ã§ãã ãå¯ãã®ã¨ããéçºæ¥åã«ã¯å ¨ãæ¯éã¯ããã¾ããã
è²»ç¨ã«ã¤ãã¦
ãã®ç°å¢ã§ã¯ãSmallã¤ã³ã¹ã¿ã³ã¹ããå©ç¨ãã¦ãã¾ãã
1æéãããã$0.088ãã24æé使ã£ã¦ãç´200åã¨ãæé ãªã®ã§ãã 1ã¶æèµ·åãã£ã±ãªãã ã¨ãããªãã¢ã§6,000åè¿ãã®è²»ç¨ãããããã¨ã«ãªãã¾ãã ã¨ã¦ããããªãããã©å®ããªãéé¡ã§ããã
ããã«å¯¾ããæåçãããªãã¨Cloudworksã«ããã¾ããã Cloudworksã§ã¯ãã¹ã±ã¸ã¥ã¼ã«ã¸ã§ããæ©è½ãæä¾ããã¦ãã æå®æé/ææ¥ã«EC2ã¤ã³ã¹ã¿ã³ã¹ããã¹ããã/ã¹ã¿ã¼ããããã¨ãå¯è½ã§ãã Management Consoleã«ãããããªæ©è½ãªã®ã§ãããå®ã¯ãªã便å©æ©è½ãªã®ã§ãã
ãããå©ç¨ãã¦ãä»åã¯ãæ¯æ¥21æã«èªåçã«ã¹ããããããè¨å®ããã¾ããã å°±æ¥æéã10:00ã19:00ãªã®ã§ãæ¥åéå§æã«æåã§èµ·åã â ã21æã«èªåçã«ã¹ããããã¨ã 1æ¥ãããç´100åã¨ãªãã¾ããå ãã¦ä¼æ¥ã¯èµ·åããªãã®ã§æ20æ¥éã®å©ç¨ã¨ãªãã¾ãã ããã§ã2,000å/æã¾ã§å©ç¨æãä¸ããã¾ããã
Railsã¢ããª1ã¤ç¨åº¦ã§ããã°ãMicroã¤ã³ã¹ã¿ã³ã¹ãã§ååãªã®ã§ã ã¨æãã®ã§ 600å/æã¾ã§æãããã¨ãå¯è½ã§ãã
Cloudworksã£ã¦æ¬å½ã«ã¨ã£ã¦ã便å©ã§ããï¼
ã¾ã¨ã
ã¾ãããã£ã¬ã³ã¸ãã¦æ°ä»ããã®ã§ããGVimãIDEçãå©ç¨ããªãèªåã®å ´å㯠ãRailså®è¡ç°å¢ããVimããGitãã®3ç¹ãããã°ãã©ãã§ãéçºãã§ããã¿ããã§ãã
ããã¦ã空ãã¡ã¢ãªã常ã«300MB以ä¸ããã¡ã³ãåãã£ã±ãªããç«å·ããã»ã©ç±ãã£ãMacbookAir㯠ä»ã¯ãã³ã¤ãªéé³ã1GBå¼·ã®ç©ºãã¡ã¢ãªã§å¤§ç©ã®é¢¨æ ¼ã§ãã
ãã ãã²ã¨ã¤ã ã"ã§ããªããªã£ãã³ã"ãããã¾ããã å æ¥ã®æ¨ªæµVimåå¼·ä¼ã§æãã¦ããã£ããshaberu.vimãã使ããªããªã£ã¦ãã¾ã£ããã¨ã§ãããã
ããã¯æ¥æ¬èªçSiriã®å£°ã§ãèªåã®Vimãåããããã©ã°ã¤ã³ã§ åå¼·ä¼ã®æã«ã¤ã³ã¹ãã¼ã«ãã¦ãã¿ããªã§éãã ã®ã§ãã è·å ´ã§Vimèµ·åæã«ããããããªãããã¹ã¿ã¼ãã£ã¦ããã¹ããã¦ã¿ãã ãªãã ãã¨ã£ã¦ãæ¥ããããæ°åã«ãªãããã以é使ãæ©ä¼ãç¡ããã¦ãã¾ããã
ããã¦ããããã¯ã¨ãã£ã¿ã«å£°ãæ±ããªãå´ã®äººéã ã¨æ°ä»ããã®ã§ å½é¢ã¯å°ãã³ãããªãããã§ãã
ãã¾ã
å¤é¨ã«éçºç°å¢ãæã¤ãã¨ã¯ããã¼ã«ã«ãã·ã³ã®ãªã½ã¼ã¹ãéæ¾ããä»ã«ãã¡ãªãããããã¾ãã Rubyã§ããã°rbenvãrvmãå©ç¨ãããã¨ã§ç°å¢ç®¡çã容æã§ãã PHPçã使ã£ã¦ããã®ã§ããã°ãããã¸ã§ã¯ãæ¯ã«ã¤ã³ã¹ã¿ã³ã¹ãä½æãããã¨ã§ æ¬çªç°å¢ã¨éçºç°å¢ã®ãã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ãå®å ¨ã«ä¸è´ããã¦ããäºã容æã§ãã
使ã£ã¦ããªãæéã¯ãã¤ã³ã¹ã¿ã³ã¹ãAMIåãã¦ãããã¨ã§ é常ã«ä½ã³ã¹ãã§éçºç°å¢ãä¿ç®¡ãã¦ãããã¨ãå¯è½ã§ãã
以ä¸ãCloudworksã£ã¦æ¬å½ã«ã¨ã£ã¦ã便å©ã§ããï¼ã£ã¦ã話ã§ããã