All examples By author By category About

ecerulm

Minimal config for sinatra / guard / livereload

Steps

bundle # install the gems bundle exec guard init livereload # to add livereload section to Guardfile bundle exec guard # guard will monitor files mkdir -p public mv index.html public/index.html

Use rackup to start sinatra + rack-livereload

bundle exec rackup config.ru

Open the page in a browser

open http://127.0.0.1:9292/index.html #edit public/index.html and the browser will autoreload

Links