cli icon indicating copy to clipboard operation
cli copied to clipboard

How to restart supabase services when I changed config.toml

Open jingsam opened this issue 1 year ago • 3 comments

Link Add a link to the page which needs improvement (if relevant)

Describe the problem When I enable analytics service in config.toml, how can I make supabase cli start service? Maybe I can do with supabase stop and supabase start, but that would be recreate all service which is slow. Maybe an restart command like docker restart is quicker?

Describe the improvement A clear and concise description of the improvement.

Additional context Add any other context or screenshots that help clarify your question.

jingsam avatar Mar 22 '24 02:03 jingsam

Thanks for the suggestion. I think we can have supabase start compare the list of running services vs enabled services in config.toml. It can then launch newly enabled containers incrementally.

sweatybridge avatar Mar 22 '24 03:03 sweatybridge

Thanks for the suggestion. I think we can have supabase start compare the list of running services vs enabled services in config.toml. It can then launch newly enabled containers incrementally.

Yes, just like k8s kubetcl apply config.yml, autodiff and action to keep local services status match the config.toml

jingsam avatar Mar 22 '24 03:03 jingsam

+1 for this

zhanziyang avatar Apr 08 '24 06:04 zhanziyang