Skip to content
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

Adding config arguments to heroku architect #411

Merged
merged 2 commits into from
Mar 8, 2021
Merged

Conversation

JackUrb
Copy link
Contributor

@JackUrb JackUrb commented Mar 4, 2021

Overview

In order to set configuration arguments for Heroku, there needs to be a way to specify them to be pushed from the CLI. This PR adds an argument for setting these to the structured config, and then parses it and writes it out. Implementation is pretty straightforward.

Testing:

I haven't tested extensively. @snyxan please try this out for your case!

Ran

print(dict(args.architect.heroku_config_args), type(dict(args.architect.heroku_config_args)))

With the contents I added to the readme, and this works.

@JackUrb JackUrb requested a review from snyxan March 4, 2021 20:15
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 4, 2021
@snyxan
Copy link
Member

snyxan commented Mar 7, 2021

Thanks for this PR!

On high level LGTM. To make it work e2e we need some minor changes. Please see this PR: #413

…pp name (#413)

* Specified heroku app name while setting config args

* Fixed code style

* Allow adding customized heroku app name in config

* Fixed code style
@JackUrb JackUrb merged commit c27d417 into master Mar 8, 2021
@JackUrb JackUrb deleted the heroku-config-args branch March 8, 2021 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants