|
|
@ -51,7 +51,7 @@ development: |
|
|
|
- pushd ./dist |
|
|
|
- find * -type f -exec sed -i -e 's@{ENV}@'"$ENVIRONMENT"'@g' {} \; |
|
|
|
- find * -type f -exec sed -i -e 's@{URL_BASE}@'"$DOWNLOAD_URL_BASE"'@g' {} \; |
|
|
|
- find * -type f -exec sed -i -e 's@{MINIFIED}@'"MINIFIED_SOURCE"'@g' {} \; |
|
|
|
- find * -type f -exec sed -i -e 's@{MINIFIED}@'"$MINIFIED_SOURCE"'@g' {} \; |
|
|
|
- popd |
|
|
|
- rsync -avz --delete-delay -e "ssh -p $DEPLOY_PORT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress dist/* $DEPLOY_USER@$DEPLOY_HOST:$TARGET_DIRECTORY |
|
|
|
only: |
|
|
@ -78,7 +78,7 @@ production: |
|
|
|
- pushd ./dist |
|
|
|
- find * -type f -exec sed -i -e 's@{ENV}@'"$ENVIRONMENT"'@g' {} \; |
|
|
|
- find * -type f -exec sed -i -e 's@{URL_BASE}@'"$DOWNLOAD_URL_BASE"'@g' {} \; |
|
|
|
- find * -type f -exec sed -i -e 's@{MINIFIED}@'"MINIFIED_SOURCE"'@g' {} \; |
|
|
|
- find * -type f -exec sed -i -e 's@{MINIFIED}@'"$MINIFIED_SOURCE"'@g' {} \; |
|
|
|
- popd |
|
|
|
- rsync -avz --delete-delay -e "ssh -p $DEPLOY_PORT -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" --progress dist/* $DEPLOY_USER@$DEPLOY_HOST:$TARGET_DIRECTORY |
|
|
|
only: |
|
|
|