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

Watch dev-pm.config.js and update in running daemon #98

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

nsams
Copy link
Member

@nsams nsams commented Oct 18, 2024

This allows modifications without having to shutdown the deamon.

  • processes are not restarted if the script command changes
  • processes are stopped if the script is removed
  • processes are not started if a new script is added
  • identifier for updates is the name of a script

This allows modifications without having to shutdown the deamon.
- processes are not restarted if the script command changes
- processes are stopped if the script is removed
- processes are not started if a new script is added
- identifier for updates is the name of a script
Watch dev-pm.config.js and update in running daemon

This allows modifications without having to shutdown the deamon.
- processes are not restarted if the script command changes
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the desired behavior? I think a restart would be more logical

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think I would expect that. And you would also have edge-cases like waitOn or env get modified - should that also trigger a restart?

Copy link
Collaborator

@johnnyomair johnnyomair Oct 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've thought mostly about waitOn and script. Maybe we could change the log to something like "... updated, please restart to apply changes"

src/commands/start-daemon.command.ts Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants