Skip to content

Instantly share code, notes, and snippets.

@yeongsheng-tan
Last active May 23, 2017 23:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yeongsheng-tan/69c0c0ee811f572442eb8b62df4c1c7c to your computer and use it in GitHub Desktop.
Save yeongsheng-tan/69c0c0ee811f572442eb8b62df4c1c7c to your computer and use it in GitHub Desktop.
Sample DB migration script that uses `bin/<release_name> command <my_mix_MFA_task>`
#!/usr/bin/env sh
# File is located in my_app/priv/commands/my_db_migrate.sh
echo "In script"
echo $SCRIPT
"${SCRIPT}" command Elixir.MyApp.ReleaseTasks migrate
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment