-1

I have a Django-based web app deployed from Github, running in Python 3.9. The app deploys and starts successfully.

I need to add post-build actions to complete the deployment; the exceeding common Django task of running "manage.py". Following the general and python-specific docs I have added the an app setting of POST_BUILD_SCRIPT_PATH=postbuild.sh

There is a shell script, postbuild.sh in the root of my app, which runs fine if I SSH into the running container. The expected behaviour is that after deployment, this should run, and output to the deployment log. Neither of these things happen.

I have tested the app setting POST_BUILD_COMMAND with a very simple echo, and that does nothing either.

Can you tell me either what I need to do to make these app settings work, or suggest an alternative method of running the post-build script?

Please note that this is a Linux app using Oryx, so answers concerning Windows/Kudu like this one aren't related.

1 Answers1

0

I noticed you asked your question over here as well. Your setting needs to be set to a relative path, /postbuild.sh.

Ryan Hill
  • 1,821
  • 2
  • 8
  • 21