Last active
February 8, 2019 23:45
-
-
Save JustinTArthur/85a2159ac8d1f42725d242f076ab2097 to your computer and use it in GitHub Desktop.
Script to run a Python script in EB context
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source /opt/python/run/venv/bin/activate | |
source /opt/python/current/env | |
if [ -f /etc/elasticbeanstalk/set-ulimit.sh ]; then | |
source /etc/elasticbeanstalk/set-ulimit.sh | |
fi | |
exec python "$@" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment