ambitious-actor-36781
11/08/2021, 12:44 AMgunicorn
) into a .pex
?
setting script="gunicorn"
works... but doesn't allow specifying the myproject.wsgi
argument.fast-nail-55400
11/08/2021, 12:51 AMflat-zoo-31952
11/08/2021, 1:01 AMpex_binary(
name="app",
dependencies=[":lib" ,"//:gunicorn"],
entry_point="gunicorn.app.wsgiapp:run",
...
)
And then you could run this like ./app.pex $GUNICORN_OPTIONS <http://your.gunicorn.app:entry_point|your.gunicorn.app:entry_point>
ambitious-actor-36781
11/08/2021, 1:19 AM<http://your.gunicorn.app:entry_point|your.gunicorn.app:entry_point>
as the command line argument.ambitious-actor-36781
11/08/2021, 1:21 AM.pex
run this?fast-nail-55400
11/08/2021, 1:25 AMhappy-kitchen-89482
11/08/2021, 1:26 AMambitious-actor-36781
11/08/2021, 1:27 AM./django-app.pex
should require 0 additional augments to run, even if it's a basic runtime configuration.enough-analyst-54434
11/08/2021, 1:33 AMambitious-actor-36781
11/08/2021, 1:36 AMambitious-actor-36781
11/08/2021, 1:52 AM