Skip to content

Conversation

@mobileoverlord
Copy link
Contributor

@mobileoverlord mobileoverlord commented Jun 11, 2019

Elixir releases offer a mechanism for generating custom boot scripts in addition to start and start_clean. This is done by adding a key value pair to the boot_scripts map in the Mix.Release struct. The generated executables currently do not offer a means for using this boot script. This PR adds the environment variables RELEASE_BOOT_SCRIPT and RELEASE_BOOT_SCRIPT_CLEAN providing overrides for start and start_clean.

@mobileoverlord
Copy link
Contributor Author

I should mention that I have not tested this on Windows, I don't have access to a Windows PC.

@mobileoverlord mobileoverlord changed the title Add RELEASE_BOOT_SCRIPT to release executables Add RELEASE_BOOT_SCRIPT and RELEASE_BOOT_SCRIPT_CLEAN Jun 11, 2019
@mobileoverlord
Copy link
Contributor Author

This has been updated. Ready for review.

@josevalim josevalim added this to the v1.9.0 milestone Jun 11, 2019
@fertapric fertapric merged commit 40f0f68 into elixir-lang:master Jun 12, 2019
@fertapric
Copy link
Member

Thanks @mobileoverlord! 💜

josevalim pushed a commit that referenced this pull request Jun 12, 2019
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
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