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

udpate #12

Merged
merged 17 commits into from
May 9, 2024
Merged

udpate #12

merged 17 commits into from
May 9, 2024

Conversation

akelch
Copy link
Owner

@akelch akelch commented May 9, 2024

No description provided.

ArneGudermann and others added 17 commits October 27, 2023 10:28
Now environment variables are loaded from the `app.yaml` and
setable from the CLI with `--env_var KEY=VALUE`.
feat: Add support for custom environment variables
feat: Set `--timeout` argument for gunicorn server
chore: Change pip version from exact to minimum conditions
…ds` argument working (#7)

* fix: Improve and refacor entrypoint to make `--workers` and `--threads` argument working

* The app_server took the entrpoint from _app.yaml_, which has mostly set
  this property. So the default value of `appYaml.get("entrypoint")` was
  actually never used. But the entrypoint in _app.yaml_ cannot have a
  `$WORKER` or `$THREADS` variable -- they don't exist in gcloud
  (https://cloud.google.com/appengine/docs/standard/python3/runtime#environment_variables)
  So the variables were never replaced, because they dont't exist.
  That made the `--worker` and `--thread` argument of the app_server
  useless.
* Now we remove these argument always from the provides entrypoint and
  re-add it with the values from our argparse. This get the arguemnts
  working.
* Furthermore I added an option to provide an custom entrypoint, if the
  entrypoint is set in the _app.yaml_, but should be different for the
  local server. Setting this through the subprocess-call in the viur-cli
  is a little bit tricky, but with double quoting it works.
* I (and PyCharm ^^) refactored this code a bit and add some type hints.

* refactor: Do some more refactorings

* refactor: Do some more refactorings
@akelch akelch merged commit dabcefb into akelch:main May 9, 2024
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

Successfully merging this pull request may close these issues.

3 participants