Skip to content

Instantly share code, notes, and snippets.

@JustinTArthur
Last active February 8, 2019 23:45
Show Gist options
  • Save JustinTArthur/85a2159ac8d1f42725d242f076ab2097 to your computer and use it in GitHub Desktop.
Save JustinTArthur/85a2159ac8d1f42725d242f076ab2097 to your computer and use it in GitHub Desktop.
Script to run a Python script in EB context
#!/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