From 5347e6be2389b2519b5f4d279ea20edcf83e32d4 Mon Sep 17 00:00:00 2001 From: Mathieu Sanchez Date: Wed, 12 Jun 2019 21:49:46 +0900 Subject: [PATCH] Change URL search --- .firebase/hosting.ZGlzdFxQUS1NYW4.cache | 10 -- firebase-debug.log | 136 ------------------------ src/environments/environment.prod.ts | 2 +- src/environments/environment.ts | 2 +- 4 files changed, 2 insertions(+), 148 deletions(-) delete mode 100644 .firebase/hosting.ZGlzdFxQUS1NYW4.cache delete mode 100644 firebase-debug.log diff --git a/.firebase/hosting.ZGlzdFxQUS1NYW4.cache b/.firebase/hosting.ZGlzdFxQUS1NYW4.cache deleted file mode 100644 index 1fe252f..0000000 --- a/.firebase/hosting.ZGlzdFxQUS1NYW4.cache +++ /dev/null @@ -1,10 +0,0 @@ -index.html,1560330268344,5927cf65ac12abbe170b9d6d6eb07b47f6056d7562720e524a581f3198d1cfef -3rdpartylicenses.txt,1560330268263,e93e82b92cbf43a870879201437a9c4911fe7fc916e49c8a4a2c06f516588d11 -favicon.ico,1560330268263,3b78f993f13027179977aaa04a5398b7d6832af035f0aacd1e517ff2c628464a -polyfills-es2015.e954256595c973372414.js,1560330268263,32055be4934d771538d90ef74c3d595b8c7e622887d13449a652487af6faba3e -runtime-es2015.858f8dd898b75fe86926.js,1560330268263,6defac21e896959ee0c165c6e34da9d4262692855dbd42ea0111f7662f4db473 -runtime-es5.741402d1d47331ce975c.js,1560330231453,6defac21e896959ee0c165c6e34da9d4262692855dbd42ea0111f7662f4db473 -styles.e70214f3497e385fb2d3.css,1560330268263,564b264867b14fd7c04309aee7b7d8cba071572368b56e2866be4d8e7310cccd -polyfills-es5.405730e5ac8f727bd7d7.js,1560330231469,fc4f710b3195578c912aa6c287560507e7dd1ca1313cb3c62901a7251237ca8e -main-es2015.d59b349e0dba71a72a16.js,1560330268263,5202ba538bb4190f32a1721cd86010328482669eb242d09288350e7c096c19b2 -main-es5.79bb47602785c52f77de.js,1560330231469,b5b3426d044e2923ef1763c8aee5cf7743dc9fc91752bd702a5cd6acea1d1875 diff --git a/firebase-debug.log b/firebase-debug.log deleted file mode 100644 index 2786c94..0000000 --- a/firebase-debug.log +++ /dev/null @@ -1,136 +0,0 @@ -[debug] [2019-06-12T09:46:48.317Z] ---------------------------------------------------------------------- -[debug] [2019-06-12T09:46:48.320Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js functions:shell -[debug] [2019-06-12T09:46:48.321Z] CLI Version: 6.10.0 -[debug] [2019-06-12T09:46:48.321Z] Platform: win32 -[debug] [2019-06-12T09:46:48.321Z] Node Version: v10.15.1 -[debug] [2019-06-12T09:46:48.322Z] Time: Wed Jun 12 2019 18:46:48 GMT+0900 (GMT+09:00) -[debug] [2019-06-12T09:46:48.322Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-06-12T09:46:48.334Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-06-12T09:46:48.335Z] > authorizing via signed-in user -[debug] [2019-06-12T09:46:48.336Z] [iam] checking project pq-man for permissions ["firebase.projects.get"] -[debug] [2019-06-12T09:46:48.338Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions - -[debug] [2019-06-12T09:46:49.265Z] <<< HTTP RESPONSE 200 -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-06-12T09:46:49.272Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man - -[debug] [2019-06-12T09:46:50.085Z] <<< HTTP RESPONSE 200 -[debug] [2019-06-12T09:46:50.086Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig - -[debug] [2019-06-12T09:46:50.562Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-06-12T09:46:50.571Z] [functions] Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions... -[debug] [2019-06-12T09:46:51.169Z] DEBUG: Functions runtime initialized. -[debug] [2019-06-12T09:46:51.170Z] DEBUG: Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[warn] ! The Cloud Functions emulator requires the module "firebase-functions-test" to be installed as a development dependency. To fix this, run "npm install --save-dev firebase-functions-test" in your functions directory. -[debug] [2019-06-12T09:46:51.378Z] [functions] Your functions could not be parsed due to an issue with your node_modules (see above) -[debug] [2019-06-12T09:47:02.855Z] DEBUG: File C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions\src\index.ts changed, reloading triggers -[debug] [2019-06-12T09:47:04.552Z] DEBUG: Functions runtime initialized. -[debug] [2019-06-12T09:47:04.554Z] DEBUG: Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[warn] ! The Cloud Functions emulator requires the module "firebase-functions-test" to be installed as a development dependency. To fix this, run "npm install --save-dev firebase-functions-test" in your functions directory. -[debug] [2019-06-12T09:47:04.934Z] [functions] Your functions could not be parsed due to an issue with your node_modules (see above) -[debug] [2019-06-12T09:48:50.310Z] ---------------------------------------------------------------------- -[debug] [2019-06-12T09:48:50.312Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js serve -[debug] [2019-06-12T09:48:50.313Z] CLI Version: 6.10.0 -[debug] [2019-06-12T09:48:50.313Z] Platform: win32 -[debug] [2019-06-12T09:48:50.313Z] Node Version: v10.15.1 -[debug] [2019-06-12T09:48:50.314Z] Time: Wed Jun 12 2019 18:48:50 GMT+0900 (GMT+09:00) -[debug] [2019-06-12T09:48:50.314Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-06-12T09:48:50.327Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-06-12T09:48:50.328Z] > authorizing via signed-in user -[debug] [2019-06-12T09:48:50.328Z] [iam] checking project pq-man for permissions ["firebase.projects.get"] -[debug] [2019-06-12T09:48:50.330Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions - -[debug] [2019-06-12T09:48:51.198Z] <<< HTTP RESPONSE 200 -[debug] [2019-06-12T09:48:51.199Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man - -[debug] [2019-06-12T09:48:52.006Z] <<< HTTP RESPONSE 200 -[info] -[info] === Serving from 'C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site'... -[info] -[warn] ! Your requested "node" version "8" doesn't match your global version "10" -[debug] [2019-06-12T09:48:52.017Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466/clients/_:getWebAppConfig - -[debug] [2019-06-12T09:48:52.017Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig - -[debug] [2019-06-12T09:48:52.504Z] <<< HTTP RESPONSE 200 -[info] + functions: Emulator started at http://localhost:5001 -[debug] [2019-06-12T09:48:53.060Z] <<< HTTP RESPONSE 200 -[info] i functions: Watching "C:\Users\Mathieu\Documents\CAU-Project\CAU-NLP-Spring-2019-PQ-Man-Site\functions" for Cloud Functions... -[info] i hosting: Serving hosting files from: dist/PQ-Man -[info] + hosting: Local server: http://localhost:5000 -[debug] [2019-06-12T09:48:53.629Z] Functions runtime initialized. -[debug] [2019-06-12T09:48:53.630Z] Disabled runtime features: {"functions_config_helper":true,"network_filtering":true,"timeout":true,"memory_limiting":true,"protect_env":true,"admin_stubs":true} -[warn] ! The Cloud Functions emulator requires the module "firebase-functions-test" to be installed as a development dependency. To fix this, run "npm install --save-dev firebase-functions-test" in your functions directory. -[info] i functions: Your functions could not be parsed due to an issue with your node_modules (see above) -[debug] [2019-06-12T12:46:28.923Z] ---------------------------------------------------------------------- -[debug] [2019-06-12T12:46:28.926Z] Command: C:\Program Files\nodejs\node.exe C:\Users\Mathieu\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js deploy -[debug] [2019-06-12T12:46:28.926Z] CLI Version: 6.10.0 -[debug] [2019-06-12T12:46:28.926Z] Platform: win32 -[debug] [2019-06-12T12:46:28.926Z] Node Version: v10.15.1 -[debug] [2019-06-12T12:46:28.928Z] Time: Wed Jun 12 2019 21:46:28 GMT+0900 (GMT+09:00) -[debug] [2019-06-12T12:46:28.928Z] ---------------------------------------------------------------------- -[debug] -[debug] [2019-06-12T12:46:28.939Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"] -[debug] [2019-06-12T12:46:28.941Z] > authorizing via signed-in user -[debug] [2019-06-12T12:46:28.941Z] [iam] checking project pq-man for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get","firebasehosting.sites.update"] -[debug] [2019-06-12T12:46:28.944Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/pq-man:testIamPermissions - -[debug] [2019-06-12T12:46:29.861Z] <<< HTTP RESPONSE 200 -[debug] [2019-06-12T12:46:29.863Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/pq-man - -[debug] [2019-06-12T12:46:30.683Z] <<< HTTP RESPONSE 200 -[info] -[info] === Deploying to 'pq-man'... -[info] -[info] i deploying functions, hosting -[info] Running command: npm --prefix "$RESOURCE_DIR" run lint -[info] Running command: npm --prefix "$RESOURCE_DIR" run build -[info] + functions: Finished running predeploy script. -[info] Running command: npm run build-prod -[info] + hosting: Finished running predeploy script. -[debug] [2019-06-12T12:47:32.569Z] > [functions] package.json contents: { - "name": "functions", - "scripts": { - "lint": "tslint --project tsconfig.json", - "build": "tsc", - "serve": "npm run build && firebase serve --only functions", - "shell": "npm run build && firebase functions:shell", - "start": "npm run shell", - "deploy": "firebase deploy --only functions", - "logs": "firebase functions:log" - }, - "engines": { - "node": "10" - }, - "main": "lib/index.js", - "dependencies": { - "firebase-admin": "~7.0.0", - "firebase-functions": "^2.3.0", - "request": "^2.88.0" - }, - "devDependencies": { - "firebase-functions-test": "^0.1.6", - "tslint": "^5.12.0", - "typescript": "^3.2.2" - }, - "private": true -} -[info] i functions: ensuring necessary APIs are enabled... -[debug] [2019-06-12T12:47:32.570Z] >>> HTTP REQUEST GET https://servicemanagement.googleapis.com/v1/services/cloudfunctions.googleapis.com/projectSettings/pq-man?view=CONSUMER_VIEW - -[debug] [2019-06-12T12:47:32.570Z] >>> HTTP REQUEST GET https://servicemanagement.googleapis.com/v1/services/runtimeconfig.googleapis.com/projectSettings/pq-man?view=CONSUMER_VIEW - -[debug] [2019-06-12T12:47:34.293Z] <<< HTTP RESPONSE 200 -[debug] [2019-06-12T12:47:34.396Z] <<< HTTP RESPONSE 200 -[info] + functions: all necessary APIs are enabled -[debug] [2019-06-12T12:47:34.397Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/pq-man - -[debug] [2019-06-12T12:47:35.193Z] <<< HTTP RESPONSE 200 -[debug] [2019-06-12T12:47:35.193Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/155870179466:getServerAppConfig - -[debug] [2019-06-12T12:47:36.033Z] <<< HTTP RESPONSE 200 -[debug] [2019-06-12T12:47:36.034Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites/pq-man/versions - diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index 1265309..8760ae1 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -1,4 +1,4 @@ export const environment = { production: true, - baseUrl: 'http://142.4.212.26:8080/search?s=', + baseUrl: 'https://us-central1-pq-man.cloudfunctions.net/search?s=', }; diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 54a4d84..8e59e6d 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -4,7 +4,7 @@ export const environment = { production: false, - baseUrl: 'http://142.4.212.26:8080/search?s=', + baseUrl: 'https://us-central1-pq-man.cloudfunctions.net/search?s=', }; /*