Abdul Rafey
Abdul Rafey

Reputation: 11

Redmine Plugin - requires restart after every code change ( Ruby on rails )

On the Redmine plugin, whenever I do some changes and save it, it requires a restart to showcase the changes. Particularly I'm working right now on init.rb which shows the effects on localhost:9292/admin/plugins.

How can I change it to whenever I save some changes it will show the results simultaneously?

I've added some code in environment.rb but still it doesn't work.

config/environment.rb

config.reload_plugins = true

Upvotes: 1

Views: 286

Answers (1)

anothermh
anothermh

Reputation: 10554

You cannot change this behavior. From the Redmine Plugin Tutorial documentation:

Note: any change to the init.rb file of your plugin requires to restart the application as it is not reloaded on each request.

For situations such as this it is possible to use Guard to trigger an automatic restart of the server when changes to that file are detected. There is no specific Guard plugin for Redmine however guard-rails can likely be configured to perform this action for you.

Upvotes: 1

Related Questions