create context script
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user