Update build.sh
This commit is contained in:
parent
9047e6c47d
commit
13829c5e6c
4
build.sh
4
build.sh
@ -15,6 +15,7 @@ fi
|
|||||||
## 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 .env.example .env
|
||||||
cp -r {.env,app.js,package.json,server,public} dist/
|
cp -r {.env,app.js,package.json,server,public} dist/
|
||||||
|
|
||||||
#Add version control for pm2
|
#Add version control for pm2
|
||||||
@ -44,5 +45,4 @@ fi
|
|||||||
## POST BUILD
|
## POST BUILD
|
||||||
|
|
||||||
cd -
|
cd -
|
||||||
|
rm .env
|
||||||
|
|
Loading…
Reference in New Issue
Block a user