fix error after logout and try to get status or to connect again

This commit is contained in:
Davidson Gomes
2023-06-12 10:32:47 -03:00
parent 573e56cd8c
commit 75b48aa8ac
6 changed files with 39 additions and 10 deletions

24
start.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/sh
if [ "$DOCKER_ENV" = "true" ];
then
echo "Enabling environment variables for Docker"
echo "DOCKER_ENV=$DOCKER_ENV"
echo
else
cp ./src/env.yml ./dist/src
fi
echo "> removing dist"
rm -rf ./dist
echo
echo "> transpiling..."
npm run build
echo
echo "> Successfully build "
echo
echo "> Starting application..."
echo
node ./dist/src/main.js