Rackhubã試ãã¦ã¿ãæ¥è¨
Rackhub: ããªãã®ããã®ãã¯ã©ã¦ãä¸ã®localhostã10ç§ã§ä½¿ããè¨å®å®äºæ¸ã¿éçºãµã¼ãã¼ã試ãã¦ã¿ãã1è¡ã§ã¾ã¨ããã¨ãè²ã ã¤ã¾ããããã©33åã§80çªãã¼ãã§ãµã¼ãã¹ãèµ·åããã¨ããã¾ã§ã§ãããæ®ã17åã§ããã°ãæ¸ãã¨ããã¾ã§ããã
ã¢ãã¯ãã¡ã: sphinxweb ã¦ã¼ã¶åã¨ãã¹ã¯ã¼ãã¯ããããguest:guestã¨admin:adminã詳ãã説æã¯ä»åº¦æ¸ããPython製ãã¬ã¼ã ã¯ã¼ã¯ã®Flaskã¨Sphinx WebSupportã使ã£ã¦ä½ããã¦ãããã½ã¼ã¹ã³ã¼ãã¯ãã¡ããnishio/sphinxweb at temp_rackhub
æéãè¨æ¸¬ããªããä½æ¥ãããã¨æãç«ã£ã¦ã¿ã¤ãã¼ãã¹ã¿ã¼ããã¦Rackhubãæ¤ç´¢ããã¨ããããå§ãã¦ã40ç§ã§ã¢ã«ã¦ã³ããã§ããä¸ã«é¡åçã¾ã§åºã¦ããé¡åçã¯ãã®ãµã¼ãã¹(ååå¿ãã)ããå¼ã£å¼µã£ã¦ãã¦ãã®ãã
éå§3åã§å ¬ééµç»é²å®äºã
ã¯ã¬ã¸ããã«ã¼ããç»é²ãã¦éå§5åã§Rackãã§ããããã£ããsshã§ã¤ãªãã§ã¿ããã¨ãã¦ãDNSãã¾ã æ´æ°ããã¦ãªãã¦ãã£ããããã å¾ ã¤ã®ããªãã ããIPã¢ãã¬ã¹æå®ã§å ¥ãããã¨æã£ããIPã¢ãã¬ã¹ãã©ãã«æ¸ãã¦ããã®ãè¦ã¤ãããããããã¼ãã¨ãè¨ã£ã¦ãããã¡ã«éå§7åã§å ¥ããããã«ãªã£ãã
ã¨ããããç®çã®ãªãã¸ããªãgit cloneãããgitã¯å ¥ã£ã¦ããç·¨éãããã¨æã£ããemacså ¥ã£ã¦ããªããscreenããããã§éå§11åã
pipãå ¥ã£ã¦ããªãã $ easy_install pip ãã¦ããèªåã®ãµã¼ãã¹ã®ããã« $ pip install -r requirements.txt ããããçµæ§è²ã å ¥ãããªã
éå§16åãããµã¼ãã5000çªãã¼ãã§ç«ã¡ä¸ãã£ããã©80ããããªãã¨ã¤ã¶ãããããããã®ç´å¾ã80çªãã¼ãã使ãããã«sudoããããã¹ãå¤ãã£ã¦flaskãè¦ã¤ããããªããªã£ã¦ãã¾ã£ãâ¦ãorz
sudoã§ãªãpythonã®sys.pathãsudo pythonã®sys.pathã«è¨å®ãã¦ã¿ããpysqlite2ããªã(ImportError: No module named pysqlite2)ã¨è¨ãããã$ pip install pysqliteãããã¨ã©ã¼ã¡ãã»ã¼ã¸ãpysqlite2/_sqlite.so: undefined symbol: PyUnicodeUCS2_AsUTF8Stringã«å¤ãã£ãï½ï½ ããã§éå§24åã
ã¨ã©ã¼ã¡ãã»ã¼ã¸ã§ã°ã°ã£ã¦--with-unicode=ucs[24]ã®ãã¹ããããåå ã¨ããè¨è¿°ãçºè¦ãããã¼ã¨RackhubãPythonããã«ãããæã®--with-unicode=ucs[24]ã®ãªãã·ã§ã³ããªããªã®ãã¯ã©ããã£ãã調ã¹ããããªâ¦ããéå§ãã25åãã£ãããããããªã©ã¨ã¤ã¶ãããæ®å¿µ1ãã¢ãã¼ãã§ã¯ã§ãã¾ããã§ããã
ãã1ãã¢ãã¼ãéå§ã
éå§29åãããã£ããsudo pythonã¨pythonã¨ã§éãPythonã®ãã¤ããªãæãã¦ããããããã®ãã«ãæã®--with-unicode=ucs[24]ãç°ãªã£ã¦ããã«éããªããã
$ which python /home/rackhuber/.pythonbrew/pythons/Python-2.7.3/bin/python $ sudo which python /usr/bin/python
ãããããã¨ãªã®ã§ãããã¨ããããã§sudo pythonãããããã«sudo /home/rackhuber/.pythonbrew/pythons/Python-2.7.3/bin/pythonããã
éå§30åããµã¼ãèµ·åãã¦80çªã§ã¢ã¯ã»ã¹ã§ããï¼ããã表示ã®ããã®ãã¼ã¿ããã«ããã¦ããã®å¿ããï½ã
éå§33åããããã§ããã33åããã
ãããã¸ã£ã¹ã50åã2ãã¢ãã¼ãã§Rackhubã試ãã¦ããã°ãæ¸ãã¨ããã¾ã§ã§ããï¼