gem install stasis
git clone https://github.com/winton/stasis stasis-site
root@as3:~# cd stasis-site
root@as3:~/stasis-site# ls
bin Gemfile lib LICENSE Rakefile README.md site spec stasis.gemspec
root@as3:~/stasis-site# cd site
root@as3:~/stasis-site/site# ls
arrow.png github.png jquery-1.6.2.js stasis.js.coffee
controller.rb index.html.haml stasis.css.scss stasis.png
root@as3:~/stasis-site/site# gem install nokogiri -- --use-system-libraries
root@as3:~/stasis-site/site# bundle install
root@as3:~/stasis-site/site# stasis
root@as3:~/stasis-site/site# ls
arrow.png github.png jquery-1.6.2.js stasis.css.scss stasis.png
controller.rb index.html.haml public stasis.js.coffee
(生成了public目录)
root@as3:~/stasis-site/site# cd public
root@as3:~/stasis-site/site/public# ls
arrow.png index.html stasis.css stasis.png
github.png jquery-1.6.2.js stasis.js
(可见~/stasis-site/site/public/就是静态网站的根目录)
root@as3:~/stasis-site/site/public# nohup Rwebserver 3103 > /dev/null &
访问http://as3.brite.biz:3103/即可看到网站效果。
发贴方法:
root@as3:~/stasis-site/site/public# cd ..
root@as3:~/stasis-site/site# nano test1.html.haml
项目地址:https://github.com/winton/stasis
注意:此stasis不是这个stasis: https://github.com/magnars/stasis
git clone https://github.com/winton/stasis stasis-site
root@as3:~# cd stasis-site
root@as3:~/stasis-site# ls
bin Gemfile lib LICENSE Rakefile README.md site spec stasis.gemspec
root@as3:~/stasis-site# cd site
root@as3:~/stasis-site/site# ls
arrow.png github.png jquery-1.6.2.js stasis.js.coffee
controller.rb index.html.haml stasis.css.scss stasis.png
root@as3:~/stasis-site/site# gem install nokogiri -- --use-system-libraries
root@as3:~/stasis-site/site# bundle install
root@as3:~/stasis-site/site# stasis
root@as3:~/stasis-site/site# ls
arrow.png github.png jquery-1.6.2.js stasis.css.scss stasis.png
controller.rb index.html.haml public stasis.js.coffee
(生成了public目录)
root@as3:~/stasis-site/site# cd public
root@as3:~/stasis-site/site/public# ls
arrow.png index.html stasis.css stasis.png
github.png jquery-1.6.2.js stasis.js
(可见~/stasis-site/site/public/就是静态网站的根目录)
root@as3:~/stasis-site/site/public# nohup Rwebserver 3103 > /dev/null &
访问http://as3.brite.biz:3103/即可看到网站效果。
发贴方法:
root@as3:~/stasis-site/site/public# cd ..
root@as3:~/stasis-site/site# nano test1.html.haml
项目地址:https://github.com/winton/stasis
注意:此stasis不是这个stasis: https://github.com/magnars/stasis