安装ruby
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm get stable
rvm list known
rvm install 1.9.3
rvm use 1.9.3
ruby -v
source ~/.rvm/scripts/rvm
rvm get stable
rvm list known
rvm install 1.9.3
rvm use 1.9.3
ruby -v
参见: http://www.tonsh.net/blog/?p=164
安装gem
sudo apt-get install rubygems
参见: http://www.computerminds.co.uk/drupal-code/guard-livereload
安装livereload
$ gem install guard-livereload
参见: https://github.com/guard/guard-livereload
安装livereload chrome 插件
https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei
试运行
运行play,在同一路径下命令行里输入livereload,在打开的play页面中单击livereload插件,编辑play内容,自动刷新