如何在 webfaction 上设置 osqa
requirements.txt 文件:
django>=1.1 mysql-python python-openid 心理咨询师2 html5库 降价 git+git://github.com/dcramer/django-sphinx.git 南
先,virtualenv ~/webapps/ --distribute 源〜/ webapps // bin / activate 导出 PATH=/usr/pgsql-9.1/bin/:$PATH (这是为了避免 pg_config not found 错误 http://community.webfaction.com/questions/736/installing-psycopg2 ) 然后 pip-2.7 install -rrequirements.txt
并且记住不要执行 pip install 来安装到 2.4 中;需要调用 pip-2.7 install
requirements.txt file:
django>=1.1
mysql-python
python-openid
psycopg2
html5lib
markdown
git+git://github.com/dcramer/django-sphinx.git
South
first, virtualenv ~/webapps/ --distribute
source ~/webapps//bin/activate
export PATH=/usr/pgsql-9.1/bin/:$PATH (this is to avoid the pg_config not found error
http://community.webfaction.com/questions/736/installing-psycopg2)
then
pip-2.7 install -r requirements.txt
And remember don't do pip install which install into 2.4; need to invoke pip-2.7 install
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只是为了分享,我按照上面 SeanF 的说明在 Webfaction 上安装了 OSQA,这很容易。我什至可以对脚本进行一些定制。现在的工作是自定义站点,而不是花费大量的时间来设置部署。感谢 Webfaction 和 SeanF。
Just to share, I installed OSQA on Webfaction following SeanF's instructions above and it was a breeze. I could even customize the script a little bit. Now the work is on customizing the site, not spending countless setting up the deployment. Thanks Webfaction and SeanF.