{"id":18078441,"url":"https://github.com/techgaun/heroku-buildpack-mix-tasks","last_synced_at":"2025-04-12T11:52:07.041Z","repository":{"id":147048562,"uuid":"56119624","full_name":"techgaun/heroku-buildpack-mix-tasks","owner":"techgaun","description":"A simple buildpack to run mix tasks during build process","archived":false,"fork":false,"pushed_at":"2017-02-03T17:22:23.000Z","size":8,"stargazers_count":7,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T06:34:36.055Z","etag":null,"topics":["elixir","heroku","heroku-buildpack"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/techgaun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-13T03:58:58.000Z","updated_at":"2021-01-02T23:11:42.000Z","dependencies_parsed_at":null,"dependency_job_id":"85a51880-ffff-49c2-aa8b-e875f7a364d3","html_url":"https://github.com/techgaun/heroku-buildpack-mix-tasks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fheroku-buildpack-mix-tasks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fheroku-buildpack-mix-tasks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fheroku-buildpack-mix-tasks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techgaun%2Fheroku-buildpack-mix-tasks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techgaun","download_url":"https://codeload.github.com/techgaun/heroku-buildpack-mix-tasks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565013,"owners_count":21125413,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["elixir","heroku","heroku-buildpack"],"created_at":"2024-10-31T12:14:04.350Z","updated_at":"2025-04-12T11:52:06.992Z","avatar_url":"https://github.com/techgaun.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# heroku-buildpack-mix-tasks\n\u003e A simple buildpack that just runs mix commands on deployment\n\n## Instruction\n\nThis buildpack is intended to be used after [heroku buildpack for elixir](https://github.com/HashNuke/heroku-buildpack-elixir) to run arbitrary mix tasks during deployment. This is a perfect buildpack if you're looking to run custom mix tasks as part of your heroku build pipeline.\n\n### Usage\n\nMake sure your app has heroku-buildpack-elixir configured.\n\n```shell\nheroku create --buildpack \"https://github.com/techgaun/heroku-buildpack-elixir.git\" # for new app\n\nheroku config:set BUILDPACK_URL=\"https://github.com/techgaun/heroku-buildpack-elixir.git\" # for existing app\n```\n\nSet this buildpack after the heroku-buildpack-elixir.\n\n```shell\n# Set the buildpack for your Heroku app\nheroku buildpacks:set https://github.com/techgaun/heroku-buildpack-elixir.git\n\n# Add this buildpack after the Elixir buildpack\nheroku buildpacks:add --index 1 https://github.com/techgaun/heroku-buildpack-mix-tasks.git\n```\n\nNote: Right now, [HashNuke/heroku-buildpack-elixir](https://github.com/HashNuke/heroku-buildpack-elixir) does not export paths of previous buildpacks in sequence for subsequent buildpacks so you might need to use [techgaun/heroku-buildpack-elixir](https://github.com/techgaun/heroku-buildpack-elixir) in some cases.\n\n### Configuration\n\nConfigure the `MIX_DEPLOY_TASKS` environment variable with the tasks you want to run.\n\n```shell\nheroku config:set MIX_DEPLOY_TASKS='ecto.migrate'\n```\n\nYou can separate tasks with semicolon if you want to run multiple tasks. Note that they will run in a sequential order.\n\n```shell\nheroku config:set MIX_DEPLOY_TASKS='ecto.drop;ecto.create;ecto.migrate;run priv/repo/my_custom_seeds.exs'\n```\n\nOn a side note, I do not recommend running `ecto.migrate`, db related commands and other various time consuming commands on Production. Esp. running `ecto.migrate` on Production can become a nightmare when you have grown to big database.\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fheroku-buildpack-mix-tasks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechgaun%2Fheroku-buildpack-mix-tasks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechgaun%2Fheroku-buildpack-mix-tasks/lists"}