mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
* [SIP-14] remove dependency on yarn in favor of npm Find more details here https://github.com/apache/incubator-superset/issues/6217 * Add core-js to dev deps * lint * fix cypress * break down cypress_build.sh * fix cypress * Use 'npm ci' in place of 'npm install' * Bump npm req to >=6.5.0 * Enforcing npm@'>=6.5.0' * Using latest lts of nvm * Make cache settings global * remove uneeded 'npm run test' as 'npm run cover' takes care of that * Prefix with 'time' * Trying to upgrade babel-eslint instead of downgrading * upgrading babel-polyfill to '@babel/polyfill' * Moving to babel 7 * remove unused packages
18 lines
513 B
Bash
Executable File
18 lines
513 B
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
if [ "$#" -ne 0 ]; then
|
|
exec "$@"
|
|
elif [ "$SUPERSET_ENV" = "development" ]; then
|
|
superset worker &
|
|
# needed by superset runserver
|
|
(cd superset/assets/ && npm ci && npm run sync-backend)
|
|
(cd superset/assets/ && npm run dev) &
|
|
flask run -p 8088 --with-threads --reload --debugger --host=0.0.0.0
|
|
elif [ "$SUPERSET_ENV" = "production" ]; then
|
|
superset worker &
|
|
superset runserver -a 0.0.0.0 -w $((2 * $(getconf _NPROCESSORS_ONLN) + 1))
|
|
else
|
|
superset --help
|
|
fi
|