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

kamal app restart isn't a thing. What's the reason behind it? #1344

Open
krtschmr opened this issue Jan 8, 2025 · 0 comments
Open

kamal app restart isn't a thing. What's the reason behind it? #1344

krtschmr opened this issue Jan 8, 2025 · 0 comments

Comments

@krtschmr
Copy link

krtschmr commented Jan 8, 2025

instead of kamal app stop && kamal app start i rather would do kamal app restart.

To my suprise it's not implemented. What's the reason behind it?

could be as simple as:


  desc "restart", "Restart app container on servers"
  def restart
    mutating do
      on(KAMAL.hosts) do |host|
        roles = KAMAL.roles_on(host)
        roles.each do |role|
          execute *KAMAL.auditor.record("Stopped app", role: role), verbosity: :debug
          execute *KAMAL.app(role: role).stop, raise_on_non_zero_exit: false
          execute *KAMAL.auditor.record("Started app version #{KAMAL.config.version}"), verbosity: :debug
          execute *KAMAL.app(role: role).start, raise_on_non_zero_exit: false
        end
      end
    end
  end
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

No branches or pull requests

1 participant