Skip to content

Commit

Permalink
fix: 🐛 Correção de nome de folder do bucket
Browse files Browse the repository at this point in the history
  • Loading branch information
DanStos committed Jul 29, 2021
1 parent c6aaacd commit 2017b4d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const { BigQuery } = require('@google-cloud/bigquery');
const { Storage } = require('@google-cloud/storage');
const psi = require('psi');
const BUCKET_GCS = process.env.PROJECT_BUCKET_GCS;
const PROJECT_FOLDER = 'base';
const PROJECT_FOLDER = 'config';
let projectConfig = {};
let debugging = false;

Expand Down
6 changes: 3 additions & 3 deletions terraform/scripts/using-local-project.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ cd ..
echo "" pwd
echo "Criando Zip"
zip -r "$1.zip" package.json index.js LICENSE README.md
echo "Movendo Zip para terraform/files-copy-to-gcs/site-speed-dashboard/"
mv "$1.zip" ./terraform/files-copy-to-gcs/site-speed-dashboard/
echo "Movendo Zip para terraform/files-copy-to-gcs/config/"
mv "$1.zip" ./terraform/files-copy-to-gcs/config/
echo "Entrando nas pasta terraform para copiar os arquivos"
cd terraform
echo "Iniciando copia para GCP"
gsutil cp -r ./files-copy-to-gcs/* "gs://$2"
echo "excluindo zip"
rm -rf "./files-copy-to-gcs/site-speed-dashboard/$1.zip"
rm -rf "./files-copy-to-gcs/config/$1.zip"
echo "FIM script $0"

0 comments on commit 2017b4d

Please sign in to comment.