1. 安装pip,apt-get install pip
2.安装svn,pip install django
3.安装django,http://blog.csdn.net/kingmari/article/details/7849600
按上面那篇文章安装django,用“django-admin”命令测试时,出现“ImportError: No module named django.core”错误。
解决方法:进入django的根目录,python setup.py install >a.log
参考http://blog.csdn.net/kingmari/article/details/7849636
4.安装easy_install,apt-get install python-setuptools
5.安装south,easy_install south
6.安装git,sudo apt-get install git-core
7.建代码仓库,用来中转代码,sudo git init --bare orderserver
8.本机:把代码推到代码仓库,git push root@58.215.173.251:/srv/coderoom/orderserver master
9.服务器:从代码仓库拉出代码,git clone root@localhost:/srv/coderoom/orderserver/
10.安装gunicorn,sudo easy_install unicorn
11.安装nginx,参考http://nginx.org/en/download.html,
下载key:wget http://nginx.org/keys/nginx_signing.key
安装key:sudo apt-key add nginx_signing.key
For Ubuntu replace codename with Ubuntu distribution codename, and append the following to the end of the
/etc/apt/sources.list
file:deb http://nginx.org/packages/ubuntu/ codename nginx deb-src http://nginx.org/packages/ubuntu/ codename nginxSupported Ubuntu versions:
Version Codename 10.04 lucid 11.10 oneiric 12.04 precise For Debian/Ubuntu then run the following commands:
apt-get update apt-get install nginx