diff --git a/docker/php/scripts/context.sh b/docker/php/scripts/context.sh new file mode 100644 index 0000000..2e18dfd --- /dev/null +++ b/docker/php/scripts/context.sh @@ -0,0 +1,12 @@ +#!/bin/sh + +APP_DIR=/var/www/app +IS_DEV=${DEV:-0} + +run() { + if [ "$IS_DEV" = 1 ]; then + gosu www-data "$@" + else + "$@" + fi +} \ No newline at end of file