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

Starting App after Reboot #130

Closed
samhamilton opened this Issue Aug 3, 2016 · 3 comments

Comments

Projects
None yet
3 participants
@samhamilton
Copy link

samhamilton commented Aug 3, 2016

Thanks for the great software, I got my servers running in no time and sorry if this is answered elsewhere; how do I get my last deployed and running app to start after the server is rebooted to start automatically, say after a kernel upgrade?

Thanks
Sam

@bharendt

This comment has been minimized.

Copy link
Contributor

bharendt commented Aug 3, 2016

To automatically start your erlang / elixir application after a reboot you would need to create a linux init script which calls /<path-to-your-release>/$APP/bin/$APP start. The contents of the init script depends on the linix distribution you are using and edeliver does not provide any.

To start your application after a reboot on the deploy hosts manually, you can use the following edeliver command:

mix edeliver start [staging|production] 

If you have several deploy hosts and only one is restarted, you can use the --host=[u@]<your-single-host.net> option to start only that single one. On the other hand, executing the start command also on running nodes has no negative effects to them, they won't be restarted in that case.

@hamann

This comment has been minimized.

Copy link
Contributor

hamann commented Aug 3, 2016

Here's an example init script for upstart systems https://github.com/boldpoker/edeliver/wiki/Example-Init-Scripts

@samhamilton

This comment has been minimized.

Copy link
Author

samhamilton commented Aug 4, 2016

Many thanks!

@samhamilton samhamilton closed this Aug 4, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment