Skip to content

Commit

Permalink
Update entrypoint.sh
Browse files Browse the repository at this point in the history
re-enable setting of default pages. Remove copying of index.html to menu.html
  • Loading branch information
Scott van Looy authored Jul 10, 2020
1 parent bf291ee commit 36dbcdc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ gcloud auth activate-service-account --key-file="$HOME"/service_key.json --proje

cd "$INPUT_BUILD_FOLDER"
gsutil -m cp -z "css,js,html,svg,json" -r . gs://"$INPUT_BUCKET_NAME"
gsutil mv gs://"$INPUT_BUCKET_NAME"/index.html gs://"$INPUT_BUCKET_NAME"/menu.html
#gsutil web set -m "$INPUT_HOME_PAGE_PATH" -e "$INPUT_ERROR_PAGE_PATH" gs://"$INPUT_BUCKET_NAME"
gsutil web set -m "$INPUT_HOME_PAGE_PATH" -e "$INPUT_ERROR_PAGE_PATH" gs://"$INPUT_BUCKET_NAME"
gsutil -m setmeta -h "Cache-Control:public, max-age=31536000" gs://"$INPUT_BUCKET_NAME"/**/*.js
gsutil -m setmeta -h "Cache-Control:public, max-age=31536000" gs://"$INPUT_BUCKET_NAME"/**/*.css
gsutil -m setmeta -h "Cache-Control:public, max-age=31536000" gs://"$INPUT_BUCKET_NAME"/**/*.svg
Expand Down

0 comments on commit 36dbcdc

Please sign in to comment.