Hanami::Reloader

Experimental code reloading for Hanami.

Usage

1. Setup Hanami project

gem install hanami
hanami new bookshelf && cd bookshelf

2. Prepare Gemfile

Edit Gemfile

  1. Remove shotgun
  2. Add the following lines
group :plugins do
  gem "hanami-reloader", "~> 0.1"
end

3. Setup hanami-reloader

bundle
bundle exec hanami generate reloader

Now you can start the server via bundle exec hanami server.

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jodosha/hanami-reloader.

Copyright © 2017 Luca Guidi – Released under MIT License