Skip to content

Mention custom scripts in mix release "One-off commands" docs #9105

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

Merged
merged 2 commits into from
Jun 3, 2019

Conversation

wojtekmach
Copy link
Member

I think most projects will end up with some kind of MyApp.ReleaseTasks module so I think we could mention it in the docs.

bin/RELEASE_NAME eval "MyApp.ReleaseTasks.migrate_db()"
bin/RELEASE_NAME rpc "MyApp.ReleaseTasks.print_connected_users()"

Finally, you may still automate this further by creating standalone scripts
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The section below has probably way too much code so maybe it's better to show the functions but let users fill in the blanks, or skip this thing altogether?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, we should probably keep this focused. I have pushed some updates, let me know what you think.

@wojtekmach
Copy link
Member Author

@josevalim looks good!

@whatyouhide whatyouhide merged commit 209b826 into elixir-lang:master Jun 3, 2019
@whatyouhide
Copy link
Member

Thanks @wojtekmach! 💟

@wojtekmach wojtekmach deleted the wm-release-docs branch June 3, 2019 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants