PromucFlow_constructor/app/server/scripts/start-dev-server.sh
Shrikant Sharat Kandula 31da3ea9ef Load Docker buildx images for testing
Signed-off-by: Shrikant Sharat Kandula <shrikant@appsmith.com>
2021-12-17 10:26:30 +05:30

20 lines
508 B
Bash
Executable File

#!/usr/bin/env bash
# Change to the parent directory of the directory containing this script.
cd "$(cd "$(dirname "$0")" && pwd)/.."
# Ref: <https://stackoverflow.com/a/30969768/151048>.
if [[ -f .env ]]; then
echo "Found a .env file, loading environment variables from that file."
set -o allexport
source .env
fi
source envs/dev.env
source ../util/is_wsl.sh
if [ $IS_WSL ]; then
_JAVA_OPTIONS="-Djava.net.preferIPv4Stack=true $_JAVA_OPTIONS"
fi
(cd dist && exec java -Xmx500m -jar server-*.jar)