【つくった】dotcloud,web2pyを使ってアプリケーションを作ってみる
はじめ
- DBは、Postgres
準備
- Python service の作成
- web2pyのダウンロード
▼Python service の作成
[mickey]% dotcloud deploy -t python mickey.www Created "mickey.www".
▼web2pyのダウンロード
wget http://www.web2py.com/examples/static/web2py_src.zip unzip web2py_src.zip
cd web2py_src python web2py.py -a 'PASS' -i 127.0.0.1 -p 8000 web2py Web Framework Created by Massimo Di Pierro, Copyright 2007-2011 Version 1.96.4 (2011-06-07 21:08:15) Database drivers available: pymysql Starting hardcron... WARNING:web2py:GUI not available because Tk library is not installed please visit: http://127.0.0.1:8000 use "kill -SIGTERM 8587" to shutdown the web2py server ・・・・・・・・・・・・・・・・・・
▼
cd web2py ln -s wsgihandler.py wsgi.py dotcloud push mickey.www . ・・・・・・・・・・・・・・・・・・ -- Beginning the build process [build:3e9ec92e399b] Fetched code revision rsync-1308319542.12
▼下記にアクセス http://www.mickey.dotcloud.com/
No module named hashlib No module named uuid
wget http://code.krypto.org/python/hashlib/hashlib-20081119.zip