Преглед на файлове

Merge branch 'master' of http://git.choozmo.com:3000/ai-anchor/video-maker

tomoya преди 2 години
родител
ревизия
637a686f64
променени са 3 файла, в които са добавени 19 реда и са изтрити 2 реда
  1. 1 0
      frontend/index.html
  2. 1 2
      frontend/src/views/Login.vue
  3. 17 0
      scripts/cloud-deploy.sh

+ 1 - 0
frontend/index.html

@@ -9,6 +9,7 @@
   <meta http-equiv="cache-control" content="no-cache">
   <meta http-equiv="pragma" content="no-cache">
   <meta http-equiv="expires" content="0">
+  <meta name="referrer" content="origin">
   <title>Vite App</title>
 </head>
 

+ 1 - 2
frontend/src/views/Login.vue

@@ -32,8 +32,7 @@ const handleGoogleAccessTokenLogin = () => {
     data.value = response;
     saveLocalToken(response.access_token);
     mainStore.setToken(response.access_token);
-    const userData = decodeCredential(response.credential);
-    console.log("Handle the userData", userData);
+    mainStore.googleLogin(response.access_token);
   });
 };
 

+ 17 - 0
scripts/cloud-deploy.sh

@@ -0,0 +1,17 @@
+#! /usr/bin/env sh
+
+# Exit in case of error
+set -e
+
+DOMAIN=${DOMAIN?Variable not set} \
+TRAEFIK_TAG=${TRAEFIK_TAG?Variable not set} \
+STACK_NAME=${STACK_NAME?Variable not set} \
+TAG=${TAG?Variable not set} \
+docker-compose \
+-f cloud-docker-compose.yml \
+-f cloud-docker-compose.override.yml \
+config > cloud-docker-stack.yml
+
+docker-auto-labels cloud-docker-stack.yml
+
+# docker stack deploy -c cloud-docker-stack.yml --with-registry-auth "${STACK_NAME?Variable not set}"