Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update after code changes? #178

Open
mcconkiee opened this issue Feb 10, 2018 · 1 comment
Open

update after code changes? #178

mcconkiee opened this issue Feb 10, 2018 · 1 comment

Comments

@mcconkiee
Copy link

This is a question, not a bug...

Awesome library. Is there a recommended way to watch the bot for code updates when making code changes. Currently the only way I can test and develop is by inserting my bot specific code changes, stop server, restart. It makes sense to me since I've followed the rails example and initiate the bot on the startup in my config.ru.

# This file is used by Rack-based servers to start the application.

require_relative 'config/environment'
require ::File.expand_path('../lib/bots/my_bot', __FILE__)

Thread.abort_on_exception = true
Thread.new do
  MyBot.run
end
run Rails.application

Perhaps this is another/better place to initiate? no idea.

@dblock
Copy link
Collaborator

dblock commented Feb 14, 2018

I've labeled this as a feature request, we want hotswap/reloading. No idea how to implement it, so PRs welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants