mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-12-18 19:32:21 -06:00
fix error after logout and try to get status or to connect again
This commit is contained in:
24
start.sh
Normal file
24
start.sh
Normal 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
|
||||
Reference in New Issue
Block a user