ehmatthes / heroku-buildpack-python

A demonstration version of the official Heroku buildpack for Python apps, showing how Django deployment can be further simplified.
https://ehmatthes.com/blog/simplified_heroku/
MIT License
16 stars 2 forks source link

Set AUTOCONIGURE_ALL #5

Closed ehmatthes closed 4 years ago

ehmatthes commented 4 years ago

It is set, but it's not available at beginning of script.

When are config variables read?

ehmatthes commented 4 years ago

Even right before collectstatic call, printenv does not show DISABLE_COLLECTSTATIC. It is available on the very first line of steps/collectstatic. How? Different env?

ehmatthes commented 4 years ago

Move all the work to the steps/autoconfigure script.

ehmatthes commented 4 years ago

For some reason (maybe the sub_env call), config vars can be read in steps files.