fix build

This commit is contained in:
Bozieru Mihai 2023-01-12 16:30:39 +00:00
parent 6fd6ca9755
commit af53dc1610

View File

@ -9,13 +9,19 @@ else
## CLEANUP
rm -fr dist/*
fi
if [ -d "node_modules" ]; then
rm -fr node_modules
fi
# Install dependencies
#npm install
## PROJECT NEEDS
echo "Building app... from $(git rev-parse --abbrev-ref HEAD)"
#npm run-script build
cp -r {.env,app.js,package.json,server,public} dist/
#cp -r {.env,app.js,package.json,server,public} dist/
cp -r . dist/
#Add version control for pm2
cd dist
@ -43,4 +49,4 @@ fi
## POST BUILD
cd -
cd -