mirror of
https://github.com/apache/superset.git
synced 2024-09-17 19:19:38 -04:00
13 lines
279 B
Bash
13 lines
279 B
Bash
|
#!/bin/bash
|
||
|
set -ex
|
||
|
|
||
|
if [ "$#" -ne 0 ]; then
|
||
|
exec "$@"
|
||
|
elif [ "$SUPERSET_ENV" = "local" ]; then
|
||
|
superset runserver -d
|
||
|
elif [ "$SUPERSET_ENV" = "production" ]; then
|
||
|
superset runserver -a 0.0.0.0 -w $((2 * $(getconf _NPROCESSORS_ONLN) + 1))
|
||
|
else
|
||
|
superset --help
|
||
|
fi
|