diff --git a/Jenkinsfile b/Jenkinsfile index 00a7411..371e1a2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,7 +32,6 @@ pipeline { stage('Build Angular') { steps { sh ''' - rm -rf $DEPLOY_PATH/* ng build --configuration production --base-href /admin/ ''' } @@ -41,6 +40,7 @@ pipeline { stage('Deploy') { steps { sh ''' + rm -rf $DEPLOY_PATH/* cp -r dist/portfolio-admin/browser/* $DEPLOY_PATH/ chown -R www-data:www-data $DEPLOY_PATH systemctl reload nginx