Skip to content

Commit

Permalink
setup: working around issues with deploy_files #3 (removed gsutil's -…
Browse files Browse the repository at this point in the history
…m flag)

Change-Id: Ie3abea6281ca492c565ba876f86529315d8a7e17
  • Loading branch information
evil-shrike committed Nov 10, 2023
1 parent 27bb9f1 commit e173225
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gcp/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,11 @@ deploy_files() {

echo "Removing existing files at $GCS_BASE_PATH"
gsutil -m rm -r $GCS_BASE_PATH/
pwd

# NOTE: if an error "module 'sys' has no attribute 'maxint'" occures, run this: `pip3 install -U crcmod`
echo "Copying application files to $GCS_BASE_PATH"
gsutil -m rsync -r -x ".*/__pycache__/.*|[.].*" ./../app $GCS_BASE_PATH
# DO NOT add -m flag for gsutil!
gsutil rsync -r -x ".*/__pycache__/.*|[.].*" ./../app $GCS_BASE_PATH
echo "Copying configs to $GCS_BASE_PATH"
gsutil -h "Content-Type:text/plain" cp ./../app/*.yaml $GCS_BASE_PATH/
if [[ -f ./../google-ads.yaml ]]; then
Expand All @@ -76,7 +77,6 @@ deploy_files() {
else
echo "Please upload google-ads.yaml"
fi
echo "done"
}


Expand Down

0 comments on commit e173225

Please sign in to comment.