Deleted articles cannot be recovered. Draft of this article would be also deleted. Are you sure you want to delete this article?
ããããã㨠blog.abcang.netã¨abcang.netå®ã®ãªã¯ã¨ã¹ããwebã³ã³ããã«è»¢é blog.abcang.netã¨abcang.netã§ããããå¥ã®ãã¼ã¸ã表示ããã app.abcang.netå®ã®ãªã¯ã¨ã¹ããappã³ã³ããã«è»¢é ç»é²ããã¦ããªããµããã¡ã¤ã³ã§ã®ã¢ã¯ã»ã¹ã¯abcang.netã«è»¢é ã³ã³ãããå¢ãããã³ã«è¨å®ãã¡ã¤ã«ã追å ããããªã ãã£ãã㨠以ä¸ã®ããã«è¨å®ãã¡ã¤ã«ãç·¨éããã åã³ã³ããã¯æ®æ®µéãã®è¨å®ãããã°ããã map $http_host $cname { hostnames; abcang.net web; blog.abcang.net web; app.abcang.net app; default 0; } server { listen 80 default_server; server_name abcang.net; #
ããã«ã¡ã¯ãCTOã®é¦¬å ´ã§ãã æè¿å©ç¨ããæ©ä¼ãå¢ãã¦ããdockerãã¿ã§ãã nginxãåããã¨ãã®Tipsã3ã¤ç´¹ä»ãã¾ãã foregroudã§èµ·åãã dockerã§ã¯ã³ãã³ããforegroundã§åãããªãã¨ã³ã³ãããåæ¢ãã¦ãã¾ãã¾ãã nginxã¯ããã©ã«ãã¯ãã¼ã¢ã³ã¨ãã¦åãã®ã§ãforegroundã§åãããã«è¨å®ãã¾ãããã nginx.confã§è¨å®ãããªãããã§ãã daemon off; Dockerfileã®èµ·åã³ãã³ãã§æå®ãããªãããã§ãã CMD ["/usr/sbin/nginx", "-g", "daemon off;"] åçãªè¨å®ãå¤é¨åãã ã¤ã¡ã¼ã¸ã®ä¸ã«è¨å®å¤ãå ¥ãã¡ããã®ã¯ããµãã§ãããã ã³ã³ããèµ·åæã«åçã«è¨å®ããããã®ã§ãã dockerã®å ´å㯠docker run æã« -e ã§ç°å¢å¤æ°ãæå®ã§ããã®ã§ä½¿ãã¾ãããã do
Docker ãã¦ã¾ããï¼ å®ã¯å®é¨çã« Docker 㧠Web ã¢ããªãæ°ã¶æéç¨ãã¦ãããè²ã ã¨è©¦è¡é¯èª¤ãã¦ããã®ã§ãå°ããã¤ã¢ã¦ãããããã¦ããã¾ãã ã¡ãªã¿ã« Ruby 製ã®ã¢ããªã§ãAWS ã® EC2 ä¸ã§éç¨ãã¦ãããå°ãä¸è¦æ¨¡ãããã®ãã®ã§ãã 2014-06-16 16:00: 追è¨ãã Docker ã¤ã¡ã¼ã¸ã®ãã«ãã«ã¤ã㦠Dockerfile ãæ®éã«æ¸ãã¦ã¾ãã ä»ã®ã¨ããã2層æ§é ã«ãã¦ãã¦ã ãã¼ã¹ã¨ãªãã¤ã¡ã¼ã¸ Ruby ã¢ããªã±ã¼ã·ã§ã³ãµã¼ãã¼ (Puma) ã¢ããªã±ã¼ã·ã§ã³ã®ã½ã¼ã¹ (git clone) bundle install ãããã¤ãããã¤ã¡ã¼ã¸ (ãã¼ã¹ã¤ã¡ã¼ã¸ãå ã«ä½ã) git pull ãã¦ã½ã¼ã¹æ´æ° bundle install ãç´ãã¦ãã¼ã¹ã«ãªã gem ãå ¥ãã asset ã® precompile ã¨ããæãã§ãã£ã¦ã¾ãã
ãã®è¨äºã¯ MySQL Casual Advent Calendar 2013 ã® 12 æ¥ç®ã§ãã ã¿ããªå¤§å¥½ã Nginx + Lua ã§ããããã® Lua ãã MySQL ãå©ããã¨ãªãã¨ãNginx ã ãã§ã¦ã§ãã¢ããªã±ã¼ã·ã§ã³ãæ¸ãã¡ããã¨ãã夢ãåºããã¾ããã é£ãããã¨ããã¤ã¡ã¼ã¸ãããããããã¾ããããå®ã¯ OpenResty ã使ãã¨ããããªç°å¢ãç°¡åã«ä½ãã¦ãã¾ãã®ã§ãä»æ¥ã¯ãã®æ¹æ³ãç´¹ä»ãã¾ãã ngx_openresty ã®ã¤ã³ã¹ãã¼ã« ä»å㯠Ubuntu 12.04 ã§ã®ä¾ã§ãããã»ã¨ãã©åæ§ã®æé 㧠CentOS 6.5 ã§ãåããã¨ã確èªãã¦ãã¾ãã *1 $ sudo apt-get -y install gcc make libpcre3-dev libssl-dev perl5 wget $ sudo apt-get -y install libmy
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}