Commit 70def36d3d5a5a1a709771062c5aea5f51e1ae07
1 parent
ca7e1a28
Exists in
production
script to deploy
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
script/prepare_deploy
| ... | ... | @@ -5,6 +5,7 @@ ERRBIT_DEPLOY_APP_PATH=$ERRBIT_DEPLOY_PATH/errbit |
| 5 | 5 | |
| 6 | 6 | cd $ERRBIT_PROJECT_PATH |
| 7 | 7 | |
| 8 | +rm -rf $ERRBIT_DEPLOY_PATH/* | |
| 8 | 9 | |
| 9 | 10 | # As dependências devem ter sido instaladas, vendorizdas e comitadas |
| 10 | 11 | |
| ... | ... | @@ -27,6 +28,6 @@ cd $ERRBIT_DEPLOY_APP_PATH |
| 27 | 28 | |
| 28 | 29 | |
| 29 | 30 | # compacta o arquivo de deploy |
| 30 | -tar -czvf ../errbit-REV.tar.gz * | |
| 31 | +tar -czvf ../errbit-$REV.tar.gz * | |
| 31 | 32 | |
| 32 | 33 | ... | ... |