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

[feature request] --env-file option in aptible deploy #300

Open
averypelle opened this issue Jan 28, 2022 · 0 comments
Open

[feature request] --env-file option in aptible deploy #300

averypelle opened this issue Jan 28, 2022 · 0 comments

Comments

@averypelle
Copy link

It would be great if aptible deploy had an option to synchronize the Aptible Configuration via a file.

Currently we can supply environment variables via aptible deploy as per the docs like

aptible deploy \
  --app "$APP_HANDLE" \
  --docker-image "$DOCKER_IMAGE" \
  FOO=BAR QUX=

It would be awesome if you could add support for an --env-file option or similar, so that the configuration can be set during deploy like so

aptible deploy \
  --app $APP_HANDLE \
  --docker-image $DOCKER_IMAGE \
  --env-file .env.aptible

I am currently instead doing the following

aptible deploy \
    --app $APP_HANDLE \
    --docker-image $DOCKER_IMAGE \
    ${test -f .env.aptible && paste -s -d ' ' .env.aptible}

If this is fixed, it could also make sense to add a similar option to aptible config:set

Thank you for the great product and CLI!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant