æ10åï¼Herokuã§Wordpressãéç¨ï¼ï¼
æè¿WordPressé¢é£ã®åå¼·ä¼ãã¤ãã³ããããè¦ãããæ°ããã¾ãã
èªåãã¡ãã£ã¨ã ãåå ãããããã®ã§ããã
ãã¯ãåç¨ç®çã§ãç¡æãªã®ã¨ã
ç°¡åã«PCãã¹ããã対å¿ã§ãããµã¤ããæ§ç¯ã§ããç¹ã§
ããã°ã ãã§ç¡ããæè¬ãã¼ã ãã¼ã¸ã¨ãã¦ã®å©ç¨ãå¢ãã¦ããæãã§ãã
Â
ãã ãããã¤ãã®ãµã¤ãããã¹ãéç¨ãããã£ãã
æãã¯èª°ãã«é ¼ã¾ãã¦ãä¸æçãªãã£ã³ãã¼ã³ãµã¤ããéå¶ããã
ã¨ãã£ãå ´åã«ã¯ã
WordPresséç¨å¯è½ãªãµã¼ãã¬ã³ã¿ã«ãæé¡æ°ç¾åããå¯è½ã¨ãªã£ãæ¨ä»ã¨ã¯è¨ã
ãããªãã®ã³ã¹ãã«ãªã£ã¦ãã¾ãã¨ããã®ãé£ç¹ã§ãã
Â
ããã§ãHerokuã¨ããã¯ã©ã¦ããµã¼ãã¹ãå©ç¨ãã¦
WordPressãµã¤ããç¡æã§ä½ããã¨ãã話ãå°è³ã«æãã ã®ã§
è²ã 調ã¹ãã試ããããã¦ã¿ã¾ããã
Â
Heroku
ÂÂ
åµç«ï¼Â 2007å¹´
Â
 ã¾ãã¯ã¢ã«ã¦ã³ãã®ä½æãã
Herokuã§ã¢ããªãå ¬éããç´åã¾ã§ã®ãã¥ã¼ããªã¢ã« - Qiita [ãã¼ã¿]
Â
ç¹ã«ãã¤ã³ããç¡ããããã¯æ¯è¼çç°¡åã«å®äºããã¨æãã¾ãã
Â
ç¶ãã¦å®éã«WordPressãè¨ç½®ãã¾ãã
WordPressã®ããã°ãherokuã§ç«ã¡ä¸ãã¦ãä½ãã¡ãªããããã®ï¼ | mah365
Â
ããã§é£ç¹ã¨ãã¦ãHerokuã¯FTPã§ãã¡ã¤ã«ã転éãããªãã¦æ§æ代çãªãã¨ã¯ã§ãã¾ããï¼ï¼
ãããæ¬å½ã¯ã§ããæ¹ã絶対便å©ã§ãããå ã ãããããµã¼ãã¹ããç¡ããã§ãï¼
Â
ããã¦æ¬¡ã®æ³¨æãã¤ã³ãã¯
ã¢ããªã³ã使ãéã«ã¯ã¬ã¸ããã«ã¼ãæ å ±ãè¨å®ãã¦ããå¿ è¦ããããããã¯ã¬ã¸ããã«ã¼ãæ å ±ã®ç»é²ããé¡ããã¾ããï¼ç¡æã®ãã®ã ã使ã£ã¦ããã°è«æ±ãããªãã®ã§ããå®å¿ãï¼ï¼
ã¯ã¬ã¸ããã«ã¼ããç»é²ãã¦ãªãã¨ãç¡æ5MBã§ãClearDBã¯ä½¿ãã¾ããã
DBã®URLãåºã¦ããªãï¼ã¨ãã人ã¯ãHerokuã®ããã·ã¥ãã¼ããã
Accountè¨å®ã§Billingã®ã¨ããã«ã«ã¼ãæ å ±ãå ¥ã£ã¦ããããã§ãã¯ãã¾ããã
Â
ã¾ãã
git init
git add .
git commit -m 'initial commit'
ä¸è¨ã³ãã³ããå®è¡ããéã¯ãå ã«ã«ã¬ã³ããã£ã¬ã¯ããªãWordPressã®ãã£ã¬ã¯ããªã«ç§»åãã¦ããã®ãå¿ããã«ã
ä¾ãã°Macã§æ¸é¡ãã©ã«ãã«ãwptestãã¨ãããã©ã«ããä½æãã¦ãããªã
ã¿ã¼ããã«èµ·åå¾ã¯
cd Documents/wptest
git init
git add .
Â
ã¨ãã£ãæãã§ãã
Â
ããã¦ãã£ã¨ãè¦æ³¨æãªã®ãÂ
ãã¼ãï¼ãã©ã°ã¤ã³ã¯ç»é¢ããæ°è¦ç»é²ã§ããªãã§ã
ã§ãã¦ãHerokuåèµ·åæã«æ¶ãã¦ãã¾ãã¾ãã
ãã¼ãï¼ãã©ã°ã¤ã³ã追å ããã¨ãã¯ããã¼ã«ã«ã§ç´æ¥
wp-content/plugins
ãwp-content/themes
ãã£ã¬ã¯ããªç´ä¸ã«ãã£ã¬ã¯ããªãã¨ã³ãã¼ãã¦ãã¾ãã¾ãããã
Herokuåèµ·åæã¨ããã®ããã¤ã³ãã§ã
Herokuã¯Dynosã¨ããåä½ã§CPUã使ã£ã¦ããã®ã§ããã
ããã¤ã24æéã«1ååæã«åèµ·åããããã¾ãï¼ï¼
å¾ã£ã¦ããã£ãã管çç»é¢ãããã¼ãããã©ã°ã¤ã³ããã£ãã¨ã¤ã³ã¹ãã¼ã«ããã¨
éãè¯ããã°20æé以ä¸ã¯æ£å¸¸åä½ãã¦ããããã«è¦ãã¦ãã¾ãã¾ãã
ãªã®ã§ãgitã§ç®¡çããã®ãå¿ããªãããã«ãã¾ãããã
Â
ä¾ãã°ãGoogle Publisher Pluginã追å ãããå ´å
WordPress ⺠WordPress Plugins
ã®æ¤ç´¢ã§ããã©ã°ã¤ã³åã§æ¤ç´¢
赤æ ã®Downloadãã¿ã³ãé¸æããã¨ãzipãã¡ã¤ã«ããã¦ã³ãã¼ãããã¾ãã
zipã解åãã¦
 wp-content/pluginsãã«ãã©ã«ããã¨ã³ãã¼
ãã¨ã¯ã
git add .
git commit -m 'add google publisher plugin'
git push heroku master
ã¨è¨ã£ãæãã«ã³ãã³ããæã¦ã°ããã©ã°ã¤ã³ã追å ããã¾ãã
Â
æå¾ã«ãmah365ããã«ãæ¸ãã¦ããã¾ãã
gitãããªãã¨ãã¡ã¤ã«è¿½å ã§ããªããã¨ããä»æ§ä¸
ç»åãã¡ã¤ã«ãæ稿ãã¦ã次ã®æ¥ã«ã¯æ¶ãã¦ã¾ãï¼
ãããä½ã¨ãããããã«ã¯Amazon S3ãå©ç¨ãããã¨ããã¨ã
æ®å¿µãªããã1GBãããæ10åç¨åº¦ã®æéãçºçãã¦ãã¾ãã¾ãã
æµç³ã«ãããããã¯æããï¼
Â
å ·ä½çãªS3ã®å©ç¨æ¹æ³ã¯ãã¾ãmah365ãããåç §
WordPress on Herokuã§ç»åã¢ãããã¼ãã§ããããã«ããæ¹æ³ | mah365
ä»åè²ã ãã¹ãããã®ã«ãé常ã«åèã«ããã¦é ãã¾ããï¼
Â
ããã§ãã¨ããããæ10åã§ã®WordPresséç¨ãå¯è½ã§ãã
ããããHerokuãS3ãã¯ã©ã¦ããµã¼ãã¹ã§ãã®ã§ãã¹ã±ã¼ã©ãã«ã§ã
ã¢ã¯ã»ã¹ãå¢ãã¦ãããããéãæãã°ãã®ã¾ã¾å¦çè½åã容éãå¢ãããã®ã¯ã¡ãªããã§ããï¼