Rails development/test environment should pick up changes to Workspaces script files in source tree
MR: Add reload mechanism to detect script file changes (!192167 - merged)
Description
Rails development/test environment should pick up changes to Workspaces script files in source tree. For example, script logic in ee/lib/remote_development/**/*.sh
, or the script-concatenation logic in ee/lib/remote_development/workspace_operations/reconcile/output/poststart_hook_inserter.rb
Otherwise, changes to these files are not picked up unless you manually restart rails-web
in the GDK, which can be very confusing and waste a lot of time if you are not aware of that.
Acceptance criteria
-
Changes to any of the workspace domain shell script code will automatically be reflected in the running GDK without having to restart rails-web
Implementation plan
- Rails provides exiting mechanisms and hooks to handle this.
See this example, which was in RemoteDevelopment::Files
module:
# ActiveSupport::Reloader.to_prepare do
# RemoteDevelopment::Files.reload_constants!
# end
Edited by 🤖 GitLab Bot 🤖