陈斌彬的技术博客

Stay foolish,stay hungry

Ruby-Pow(原创)

img

POW-Knock Out Rails & Rack Apps Like a Superhero.

Pow is a zero-config Rack server for Mac OS X. Have it serving your apps locally in under a minute.

Installs faster than a speeding SSD.

To install or upgrade Pow, open a terminal and run this command:

$ curl get.pow.cx | sh

To set up a Rack app, just symlink it into ~/.pow:

$ cd ~/.pow
$ ln -s /path/to/myapp

That’s it! Your app will be up and running at http://myapp.dev/ See the user’s manual for more information.

ln -s 是 linux 系统通用的,你可以理解为快捷方式,只是一个映射。

img

Pow example

$ mkdir hexo
$ hexo init
$ npm install
$ hexo generate
$ cd ~/.pow
$ ln -s /Users/apple/hexo
$ hexo server
$ open http://hexo.dev 

img

Link