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

What's the role of "on :launch do" part of deploy.rb #631

Closed
erusev opened this issue Dec 19, 2018 · 1 comment
Closed

What's the role of "on :launch do" part of deploy.rb #631

erusev opened this issue Dec 19, 2018 · 1 comment

Comments

@erusev
Copy link

erusev commented Dec 19, 2018

What's the role of:

on :launch do
  in_path(fetch(:current_path)) do
    command %{mkdir -p tmp/}
    command %{touch tmp/restart.txt}
  end
end

Would be helpful to add a comment in the code that explains it.

@erusev erusev changed the title What's the role of "on :launch do" part of the deploy.rb What's the role of "on :launch do" part of deploy.rb Dec 19, 2018
@wpolicarpo
Copy link
Contributor

on :launch is what happens after mina creates the symlink between the release path and the current folder.

Think of these on :something as steps of the deploy workflow. So after creating the symlink, you probably want to restart your server and/or services or do whatever is relevant for you.

It would be better to read the bash script here executed during the deploy to better understand what's going on.

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

3 participants