git clone https://github.com/creationix/wheat
cd wheat
npm install
npm install wheat
git clone http://github.com/creationix/howtonode.org howtonode.org-site
as3:~/wheat# ls
howtonode.org-site lib LICENSE node_modules package.json README.markdown
as3:~/wheat# cd howtonode.org-site
as3:~/wheat/howtonode.org-site# ls
articles description.markdown package.json README.markdown skin
authors post-receive.sh server
as3:~/wheat/howtonode.org-site# nano package.json
把此行"creationix": ">=0.1.2 <=0.3.1",改为"creationix": "0.3.1",
as3:~/wheat/howtonode.org-site# npm install
as3:~/wheat/howtonode.org-site# ls
articles description.markdown package.json README.markdown skin
authors node_modules post-receive.sh server
as3:~/wheat/howtonode.org-site# cd server
as3:~/wheat/howtonode.org-site/server# ls
server.js
as3:~/wheat/howtonode.org-site/server# nano server.js
把此行)).listen(process.env.JOYENT ? 80 : 8080);
改为:
)).listen(process.env.JOYENT ? 80 : 7085);
as3:~/wheat/howtonode.org-site/server# nohup node ~/wheat/howtonode.org-site/server/server.js > /dev/null &
访问http://as3.brite.biz:7085/即可看到网站效果。
发贴方法:
as3:~/wheat/howtonode.org-site/server# cd ..
as3:~/wheat/howtonode.org-site# ls
articles description.markdown package.json README.markdown skin
authors node_modules post-receive.sh server
as3:~/wheat/howtonode.org-site# cd authors
as3:~/wheat/howtonode.org-site/authors# nano ym.markdown
内容为:
Location: china
he loves life.
as3:~/wheat/howtonode.org-site/authors# cd ../articles
as3:~/wheat/howtonode.org-site/articles# nano test1.markdown
格式为
Title: test1
Author: ym
Date: Mon Apr 14 2014 19:32:51
这是测试1.
保存帖子,网站就自动更新了。
演示站点:http://as3.brite.biz:7085/
项目地址:
https://github.com/creationix/wheat
https://github.com/creationix/howtonode.org
这个程序是不生成静态网站的根目录的,因此如果想绑定域名,就只能用apache或nginx做反向代理来实现了,反向代理这个网址http://as3.brite.biz:7085/
这个静态博客程序不能分页,作者的答复: it's not implemented. You can see an index of all articles on this repo however in the articles folder.
cd wheat
npm install
npm install wheat
git clone http://github.com/creationix/howtonode.org howtonode.org-site
as3:~/wheat# ls
howtonode.org-site lib LICENSE node_modules package.json README.markdown
as3:~/wheat# cd howtonode.org-site
as3:~/wheat/howtonode.org-site# ls
articles description.markdown package.json README.markdown skin
authors post-receive.sh server
as3:~/wheat/howtonode.org-site# nano package.json
把此行"creationix": ">=0.1.2 <=0.3.1",改为"creationix": "0.3.1",
as3:~/wheat/howtonode.org-site# npm install
as3:~/wheat/howtonode.org-site# ls
articles description.markdown package.json README.markdown skin
authors node_modules post-receive.sh server
as3:~/wheat/howtonode.org-site# cd server
as3:~/wheat/howtonode.org-site/server# ls
server.js
as3:~/wheat/howtonode.org-site/server# nano server.js
把此行)).listen(process.env.JOYENT ? 80 : 8080);
改为:
)).listen(process.env.JOYENT ? 80 : 7085);
as3:~/wheat/howtonode.org-site/server# nohup node ~/wheat/howtonode.org-site/server/server.js > /dev/null &
访问http://as3.brite.biz:7085/即可看到网站效果。
发贴方法:
as3:~/wheat/howtonode.org-site/server# cd ..
as3:~/wheat/howtonode.org-site# ls
articles description.markdown package.json README.markdown skin
authors node_modules post-receive.sh server
as3:~/wheat/howtonode.org-site# cd authors
as3:~/wheat/howtonode.org-site/authors# nano ym.markdown
内容为:
Location: china
he loves life.
as3:~/wheat/howtonode.org-site/authors# cd ../articles
as3:~/wheat/howtonode.org-site/articles# nano test1.markdown
格式为
Title: test1
Author: ym
Date: Mon Apr 14 2014 19:32:51
这是测试1.
保存帖子,网站就自动更新了。
演示站点:http://as3.brite.biz:7085/
项目地址:
https://github.com/creationix/wheat
https://github.com/creationix/howtonode.org
这个程序是不生成静态网站的根目录的,因此如果想绑定域名,就只能用apache或nginx做反向代理来实现了,反向代理这个网址http://as3.brite.biz:7085/
这个静态博客程序不能分页,作者的答复: it's not implemented. You can see an index of all articles on this repo however in the articles folder.