From a07120a96216c0f747e88dcf0645134af8c5b912 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Mon, 4 Nov 2024 16:55:31 +0200 Subject: [PATCH] Add docker deployment --- Dockerfile | 5 +---- config.js.ci | 5 ----- config.js.example | 5 ----- package.json | 4 ++-- src/views/PHPInfo.vue | 3 +-- src/views/php/PHPArrayToJson.vue | 3 +-- src/views/php/Serialize.vue | 3 +-- src/views/php/StrToPHPArray.vue | 3 +-- src/views/strings/NATOAlphabet.vue | 1 - 9 files changed, 7 insertions(+), 25 deletions(-) delete mode 100644 config.js.ci delete mode 100644 config.js.example diff --git a/Dockerfile b/Dockerfile index 1b14610..ce33579 100644 --- a/Dockerfile +++ b/Dockerfile @@ -82,14 +82,11 @@ COPY . . RUN npm install \ && npm run build \ + && chown www-data:www-data . -R \ && mv /tmp/dist/* /tmp/api /var/www/html WORKDIR /var/www/html -RUN cp config.js.ci config.js \ - && sed -i "s/{APP_URL}/$APP_URL/g" config.js \ - && chown www-data:www-data . -R - COPY ./entrypoint.sh / CMD ["/bin/bash", "/entrypoint.sh"] diff --git a/config.js.ci b/config.js.ci deleted file mode 100644 index 093aae6..0000000 --- a/config.js.ci +++ /dev/null @@ -1,5 +0,0 @@ -const config = { - APP_URL: '{APP_URL}', -}; - -export { config }; diff --git a/config.js.example b/config.js.example deleted file mode 100644 index 13eff9a..0000000 --- a/config.js.example +++ /dev/null @@ -1,5 +0,0 @@ -const config = { - APP_URL: 'http://192.168.33.27:3000/', -}; - -export { config }; diff --git a/package.json b/package.json index 5b3b1b3..34b244d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "yourmap-tracker", - "version": "0.0.0", + "name": "random-web-tools", + "version": "1.0.0", "scripts": { "build": "vite build", "lint": "eslint .. --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore", diff --git a/src/views/PHPInfo.vue b/src/views/PHPInfo.vue index b2c7952..cefce43 100644 --- a/src/views/PHPInfo.vue +++ b/src/views/PHPInfo.vue @@ -4,7 +4,6 @@