npm install woods -g
安装后,执行文件为:/root/npm/bin/woods
git clone https://github.com/studiomoniker/woods woods-site
cd woods-site
root@as3:~/woods-site# ls
bin example lib README.md
ChangeLog index.js LICENSE.txt package.json
root@as3:~/woods-site#
root@as3:~/woods-site# /root/npm/bin/woods example --export output --port 3084 (这个就是生成/更新静态网站的命令)
root@as3:~/woods-site# ls
bin example lib output README.md
ChangeLog index.js LICENSE.txt package.json
(新出现了output目录)
root@as3:~/woods-site# cd output
root@as3:~/woods-site/output# ls
about-us assets contact index.html projects
(可见~/woods-site/output/就是静态网站的根目录)
root@as3:~/woods-site/output# nohup Rwebserver 23190 > /dev/null &
访问http://as3.brite.biz:23190即可看到网站效果。
发贴方法:
root@as3:~/woods-site/output# cd ../example/content
root@as3:~/woods-site/example/content# ls
01-about-us 02-projects 03-contact home.md
root@as3:~/woods-site/example/content# mkdir 04-test1
root@as3:~/woods-site/example/content# cd 04-test1
root@as3:~/woods-site/example/content/04-test1# nano test1.md
格式为:
---
title: test1
---
## 测试1
这是测试1.
然后,
root@as3:~/woods-site/example/content/04-test1# cd ~/woods-site
root@as3:~/woods-site# /root/npm/bin/woods example --export output --port 3084
演示站点:http://as3.brite.biz:23190/,http://woods.smt.biz.st
项目地址:https://github.com/studiomoniker/woods
安装后,执行文件为:/root/npm/bin/woods
git clone https://github.com/studiomoniker/woods woods-site
cd woods-site
root@as3:~/woods-site# ls
bin example lib README.md
ChangeLog index.js LICENSE.txt package.json
root@as3:~/woods-site#
root@as3:~/woods-site# /root/npm/bin/woods example --export output --port 3084 (这个就是生成/更新静态网站的命令)
root@as3:~/woods-site# ls
bin example lib output README.md
ChangeLog index.js LICENSE.txt package.json
(新出现了output目录)
root@as3:~/woods-site# cd output
root@as3:~/woods-site/output# ls
about-us assets contact index.html projects
(可见~/woods-site/output/就是静态网站的根目录)
root@as3:~/woods-site/output# nohup Rwebserver 23190 > /dev/null &
访问http://as3.brite.biz:23190即可看到网站效果。
发贴方法:
root@as3:~/woods-site/output# cd ../example/content
root@as3:~/woods-site/example/content# ls
01-about-us 02-projects 03-contact home.md
root@as3:~/woods-site/example/content# mkdir 04-test1
root@as3:~/woods-site/example/content# cd 04-test1
root@as3:~/woods-site/example/content/04-test1# nano test1.md
格式为:
---
title: test1
---
## 测试1
这是测试1.
然后,
root@as3:~/woods-site/example/content/04-test1# cd ~/woods-site
root@as3:~/woods-site# /root/npm/bin/woods example --export output --port 3084
演示站点:http://as3.brite.biz:23190/,http://woods.smt.biz.st
项目地址:https://github.com/studiomoniker/woods