fix build
This commit is contained in:
parent
6fd6ca9755
commit
af53dc1610
10
build.sh
10
build.sh
@ -9,13 +9,19 @@ else
|
|||||||
## CLEANUP
|
## CLEANUP
|
||||||
rm -fr dist/*
|
rm -fr dist/*
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -d "node_modules" ]; then
|
||||||
|
rm -fr node_modules
|
||||||
|
fi
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
#npm install
|
#npm install
|
||||||
|
|
||||||
## PROJECT NEEDS
|
## PROJECT NEEDS
|
||||||
echo "Building app... from $(git rev-parse --abbrev-ref HEAD)"
|
echo "Building app... from $(git rev-parse --abbrev-ref HEAD)"
|
||||||
#npm run-script build
|
#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
|
#Add version control for pm2
|
||||||
cd dist
|
cd dist
|
||||||
@ -43,4 +49,4 @@ fi
|
|||||||
|
|
||||||
## POST BUILD
|
## POST BUILD
|
||||||
|
|
||||||
cd -
|
cd -
|
||||||
|
Loading…
Reference in New Issue
Block a user