Skip to content

Commit

Permalink
Copy files using rsync instead of cp
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinmp committed Aug 21, 2020
1 parent 3105856 commit c540698
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ rm -rf v$1.zip

mkdir -p ~/ddw-analyst-ui

cp -R -f ddw-analyst-ui-$1/ ~/ddw-analyst-ui/ || exit
rsync -a ddw-analyst-ui-$1/ ~/ddw-analyst-ui/ || exit

rm -rf ddw-analyst-ui-$1

Expand All @@ -30,15 +30,3 @@ npm run build
docker-compose exec web python manage.py migrate

docker-compose restart

git checkout master
git fetch
git stash
git pull origin master
docker-compose build --no-cache web
npm install
npm run build
docker-compose down
docker-compose up -d
docker-compose exec web python manage.py migrate
cd ~

0 comments on commit c540698

Please sign in to comment.