improved build to get also the git log to know what is on server
This commit is contained in:
parent
23ca56c8c6
commit
aca0a6eac0
3
build.sh
3
build.sh
@ -22,7 +22,8 @@ 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,doc,Dockerfile} dist/
|
cp -r {.env,app.js,package.json,server,public,doc,Dockerfile} dist/
|
||||||
#cp -r ./* dist/
|
#cp -r ./* dist/
|
||||||
|
dateString=$(date +"%Y%m%d-%H%M%S")
|
||||||
|
git log --pretty=format:"%ad%x09%an%x09%s" --no-merges -20 > "dist/git--$dateString.log"
|
||||||
#Add version control for pm2
|
#Add version control for pm2
|
||||||
cd dist
|
cd dist
|
||||||
#Add version control for pm2
|
#Add version control for pm2
|
||||||
|
Loading…
Reference in New Issue
Block a user