Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Detach mode improvements #3709

Open
jeffsmale90 opened this issue Sep 23, 2022 · 4 comments
Open

Detach mode improvements #3709

jeffsmale90 opened this issue Sep 23, 2022 · 4 comments

Comments

@jeffsmale90
Copy link
Contributor

Potential improvements to detach mode:

  • ability to tag an instance with a meaningful name (instead of the generated name or in addition?)
  • ability to access logs from an instance (with --follow as an option) see docker logs command
  • autoassign ports Support binding to port 0 #2643
  • Friendly logs when attempting to start ganache with a port that's in use (ie Port 8545 is in use by molten_caramel_pudding - try _ganache instances stop molten_caramel_pudding_ to stop that instance)
  • Filecoin doesn't shutdown cleanly when args validation fails (try running two instances of filecoin in detached mode)
@MicaiahReid
Copy link
Contributor

ganache instances stop all would be nice to kill all ganache instances

@MicaiahReid
Copy link
Contributor

ganache instances stop <pid> is probably worth considering too

@nishilcygbit
Copy link

Creating a startup script to respawn instances on server restart could be a good addition too. Is there a provision for it already and I am missing it in documentation?

@jeffsmale90
Copy link
Contributor Author

jeffsmale90 commented Dec 21, 2022

@nishilcygbit that's a great idea - application crashes and computer restarts messing up your day.

Restarting the instances is conceptually relatively simple but integrating that into the different operating systems adds complexity.

In order to keep state between instances of Ganache, you can pass the --database.dbPath argument (See the docs here: https://trufflesuite.com/docs/ganache/reference/cli-options/#database).

I'll raise it with the team, but feel free to create an issue to describe your usecase in more detail.

Thanks for the feedback!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
Status: Backlog
Development

No branches or pull requests

4 participants