Support --extra_args parameter in dev/run#2183
Merged
iilyak merged 1 commit intoapache:masterfrom Sep 10, 2019
Merged
Conversation
garrensmith
approved these changes
Sep 10, 2019
65c2b5e to
57ec2f5
Compare
Sometimes there is a need to specify additional arguments for the beam process we start from dev/run. In particular the feature is handy for: - changing emulator flags - simulate OOM via available RAM restrictions - enable module loading tracing - configure number of schedulers - modify applications configuration - run customization script to add extra development deps (such as automatic code reload) Historically developers had to edit dev/run to do it. This PR adds an ability to specify additional arguments via `--extra_args` argument. In order to run customization script create `customization.erl` which exports `start/0` and run it using: ``` dev/run --extra_args='-run customization' ```
57ec2f5 to
dd5ac13
Compare
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Sometimes there is a need to specify additional arguments for the beam process we start from dev/run.
In particular the feature is handy for:
Historically developers had to edit dev/run to do it.
This PR adds an ability to specify additional arguments via
--extra_argsargument.In order to run customization script create
customization.erlwhich exportsstart/0and run it using:Testing recommendations
dev/customization.erlwith the following content:dev/run --extra_args='-run customization'Related Issues or Pull Requests
Checklist
rel/overlay/etc/default.ini