improved build to get also the git log to know what is on server

This commit is contained in:
Privileged User 2023-01-17 16:00:52 +00:00
parent 23ca56c8c6
commit aca0a6eac0
1 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,8 @@ echo "Building app... from $(git rev-parse --abbrev-ref HEAD)"
#npm run-script build
cp -r {.env,app.js,package.json,server,public,doc,Dockerfile} 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
cd dist
#Add version control for pm2