Total Pageviews

Saturday 28 June 2014

在linux vps上搭建基于python的博客程序-pomash

git clone https://github.com/JmPotato/Pomash pomash-site
cd pomash-site

root@as3:~/pomash-site# ls
init_db.py  LICENSE  Pomash  README.md  requirements.txt  run.py  settings.py
root@as3:~/pomash-site# pip install -r requirements.txt
root@as3:~/pomash-site# nano settings.py
root@as3:~/pomash-site# python init_db.py
Did not find any database file.
Creat Admin Config......
Creat Article Database......
Creat Page Database......
Creat Tag Database......
Creat Index......
Successful to creat database file.
root@as3:~/pomash-site# nohup python run.py --port=3526 > /dev/null &
访问http://as3.brite.biz:3526/即可看到网站效果。
搭配的数据库好像是sqlite.

演示站点:http://as3.brite.biz:3526/
(http://as3.brite.biz:3527/,这个是另外克隆源码到 ~/pomash-site2,在~/pomash-site2/上搭建的。)
项目地址:https://github.com/JmPotato/Pomash