Total Pageviews

Sunday, 12 January 2014

volojs和静态站点

 npm install -g volo
volo create volo-site
cd volo-site

as3:~/volo-site# ls
package.json  README.md  tools  www
as3:~/volo-site# ls www
app  app.js  index.html  lib
as3:~/volo-site# cd www
as3:~/volo-site/www# ls
app  app.js  index.html  lib
as3:~/volo-site/www# nohup Rwebserver 43752 > /dev/null &

--------------------
as3:~# volo create volo-project volojs/create-responsive-template
Downloading: https://codeload.github.com/volojs/create-responsive-template/legacy.zip/master
Downloading: http://code.jquery.com/jquery-1.9.1.js
Downloading: https://codeload.github.com/twbs/bootstrap/legacy.zip/v3.0.3
https://api.github.com/repos/volojs/create-responsive-template/zipball/master used to create volo-project
as3:~# cd volo-project
as3:~/volo-project# ls
node_modules  package.json  README.md  tools  volofile  www
as3:~/volo-project# volo appcache (此命令会在当前目录下,生成www-built目录)
as3:~/volo-project# ls
node_modules  package.json  README.md  tools  volofile  www  www-built
as3:~/volo-project# cd www-built
as3:~/volo-project/www-built# nohup Rwebserver 43753 > /dev/null &
(visit http://as3.brite.biz:43753/)

项目地址:https://github.com/volojs/volo