Heroku使ã£ã¦ã¾ãããHeroku便å©ãªãã§ããã©ãæè¿ç¡æçã ã¨ã³ã³ããã24æéupãç¶ãããã¨ãã§ããªããªãã¾ããã
ã¾ãããã¦ãã®å®é¨çãªWebAppãªããªãã¨ããªããã§ããã©ãTwitterã®update-name(ãªããã®ãã¤ã¼ããããªã¬ã¼ã«èªåã®ååå¤ãããã¤)ã¨ãSlackç¨ã®Hubotã¨ã24æéç£è¦ç³»ã®ã¢ããªã常æç«ã¡ä¸ãããã®ãé£ãããªãã¾ããã
7ãã«ãããæ¯æããã¨ããæ°æã¡ããããã®ã§ãããä½åéæ¬ ãªã®ã§å¥ã®ã½ãªã¥ã¼ã·ã§ã³ã欲ããã¨ããã§ãã
dokkuã¨ãããã®ã使ãã¨Herokuã¨ã»ã¼åæ§ãªæãã§ã¢ããªã±ã¼ã·ã§ã³ããããã¤ã§ãã¦ä¾¿å©ãªã®ã§ãã®è©±ããã¾ãã
dokku
dokkuã¯200è¡ãããã®Bashã§æ¸ããã¦ãã(å®éã¯ä¾åãã¡ã¤ã«ã¨ããã¼ã«ç¾¤ããã£ã¦ããã«å©ãããã¦ã)PaaSç°å¢ã¿ãããªãã¤ã§ããDockerããã¼ã¹ã«ãã¦ãã¦ãgitã§pushããã¨ãããªã«ãããã¤ãã¦ããã¾ããä¸ã§heroku-buildpackã¨ããã®ã使ã£ã¦ããæãã«ãã«ããã¦ããã¾ãããªã®ã§ããããã¤ããã¨ããHerokuã¿ãããªåºåãã§ã¦ãã¾ãã
dokkuã®ç°å¢ãä½ãã«ã¯ããã®æ示ã«å¾ãã°è¯ãã§ãã Dokku - The smallest PaaS implementation you've ever seen
Nginxã®è¨å®ã¨ãã豪快ã«å¹ã£é£ã°ãã®ã§ã¾ã£ãããªç¶æ ã®Ubuntu 14.04ã«ã¤ã³ã¹ãã¼ã«ããå¿ è¦ãããã¾ããã¾ããã¨ã¯ãããªã«ããã¨ã¨ãããããããã¤ã§ããããã«ãªãã¾ãããã¡ã¤ã³ã1ã¤å¿ è¦ã§ããµããã¡ã¤ã³ãã¨ã¯ã¤ã«ãã«ã¼ãã§dokkuãã¹ãã«åããå¿ è¦ãããã¾ãã
StartSSL
Let's Encryptã¨ãããç¡åã®SSL証ææ¸çºè¡ãµã¼ãã¹ã11æãããã«ã§ãã®ã§ãããã¯ã¤ã«ãã«ã¼ã証ææ¸ã¯åããªãã®ã§StartSSLã§ã¯ã¤ã«ãã«ã¼ã証ææ¸ãã¨ãã¾ããLet's Encryptã¯åå¾ãèªååã§ããã®ã§pushãhookãã¦è¨¼ææ¸ãåå¾ããã°ãªãã¨ããªãã¨ããæ°ããã¾ãããNginxã®confãåçã«æ¸ãæãã¦ãªãã¼ãããå¿ è¦ãããããã¯ãé¢åãªã®ã§ã¯ã¤ã«ãã«ã¼ã証ææ¸ãã¨ããã¨ããªã¹ã¹ã¡ãã¾ãã
StartSSLã¯åºæ¬çã«ç¡æã§SSL証ææ¸ãåå¾ã§ãã¾ãããã¯ã¤ã«ãã«ã¼ã証ææ¸ãã¨ãã«ã¯Personal Identity Verificationã¨ãããã®ãåããå¿ è¦ãããã¾ãããããåããã«ã¯59.90ãã«/2å¹´ãããããã¤å人ã証æããããã®æ¸é¡(é¡åç/èªçæ¥/ä½æãè¨å ¥ããã¦ãã)ã2ã»ãããæºå¸¯ã¾ãã¯åºå®é»è©±ã®è«æ±æ¸(æ°å/ä½æ/é»è©±çªå·ãè¨å ¥ããã¦ãã)ãå¿ è¦ã«ãªãã¾ããæåã®æ¸é¡ã¯ã¢ãããã¼ãã§ã¢ãããã¼ããã¾ããã以å¾ã¯ã¡ã¼ã«ã§ããã¨ãããå¿ è¦ãããã¾ããå½ç¶è±èªã§ãã
é»è©±ã®è«æ±æ¸ãéãã¨ããã®çªå·ã«é»è©±ãæ¥ã¾ããç¸æã¯ã¡ããã¨äººéã§ãååã®ç¢ºèªã¨èªçæ¥ãä½æã質åããã¾ãããã¾ãçããããã¨3æéãããã§approveãããã¨ãã話ãèãããã¾ãã
è±èªãè¦æãªäººã¯è«æ±æ¸ããªãã¿ãããªè©±ãããã¨å½éç¹æ®é常æ¸çã§verification codeãéããã¦ãã¦ãWebã§å ¥åããã¨ãªãã¨ããªãã¨ããåã§ãããããããé¸æããã¨å ¨ããã»ã¹ãçµããã®ã«15æ¥åå¾ãããããåãçããã§ããã®ã§ããã°é»è©±ã®è«æ±æ¸ãéã£ãã»ããæ©ãã§ãã
ãã¨ãStartComã®äººã¯å½éé»è©±ã«æ £ãã¦ãªãããããé»è©±ããããããªãã¨ããã¡ã¼ã«ãéã£ã¦ãããã¨ãããã¾ãã
ããã®URLãæãã¤ãã¦exit codeã¨ã確èªãã¦é»è©±ãã¦ããã¿ãããªè©±ãããã¨ãã¾ãé»è©±ããã¾ããã
approveãããã¨é常ã®SSL証ææ¸åå¾ããã»ã¹ã¨åæ§ã®æé ã§ã¯ã¤ã«ãã«ã¼ã証ææ¸(ãµããã¡ã¤ã³ã*ã®è¨¼ææ¸)ãåå¾ã§ããããã«ãªãã¾ãã
ããã
ãããã¸ããåèã«ãããªã«ããã¨dokkuãhttpsåã§ãã¾ãã
ã¾ã¨ã
以ä¸ã®æé ã§ãããã®VPS 2Gãã©ã³ã«dokkuãã¤ã³ã¹ãã¼ã«ãã¾ãããæ®éã«update-nameããããã¤ããã ãã ã¨ã¡ã¢ãªä½¿ç¨éã5%ãããã§ã¨ã¦ãå¿«é©ã§ãã
dokkuèªä½ãWebUIããªããã¹ã±ã¼ã«ãã§ããªãããã«ãããã³ã/ãã«ãã¦ã¼ã¶(ã¢ã¯ã»ã¹å¶å¾¡)ãã§ããªããªã©ãããããªä¸ä¾¿ãªç¹ã¯ããã¾ãããåç´ã«å人çã«ä½¿ãã®ã§ããã°Procfileãæ¸ãã°ã·ã¥ãã¨ãããã¤ã§ããã®ã§ããã以ä¸ãªãç°å¢ã ã¨æãã¾ããèå³ã®ããããã¯ãã²æ§ç¯ãã¦ã¿ã¦ãã ããã