Merge pull request 'adding compose for launching properly everything' (#151) from tonitch/compose into master
Some checks failed
Some checks failed
Reviewed-on: #151 Reviewed-by: LeoMoulin <leomoulin125@gmail.com> Reviewed-by: Wal <karpinskiwal@gmail.com> Reviewed-by: Maxime <231026@umons.ac.be>
This commit is contained in:
11
frontend/Dockerfile
Normal file
11
frontend/Dockerfile
Normal file
@ -0,0 +1,11 @@
|
||||
# https://v2.vuejs.org/v2/cookbook/dockerize-vuejs-app
|
||||
FROM node:lts-alpine
|
||||
RUN npm install -g http-server
|
||||
WORKDIR /app/front
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
COPY . .
|
||||
ENV VITE_CLYDE_MODE=container
|
||||
RUN npm run build
|
||||
EXPOSE 8080
|
||||
CMD [ "http-server", "dist" ]
|
@ -1,7 +1,7 @@
|
||||
import { getCookie } from '../utils.js'
|
||||
import { toast } from 'vue3-toastify'
|
||||
|
||||
const restURL = import.meta.env.PROD ? "https://clyde.herisson.ovh/api" : "http://localhost:8080"
|
||||
const restURL = import.meta.env.VITE_CLYDE_MODE === 'container' ? "http://localhost:8080": import.meta.env.DEV ? "http://localhost:8080" : "https://clyde.herisson.ovh/api"
|
||||
|
||||
export async function restGet(endPoint) {
|
||||
return await _rest(endPoint, {method: "GET"});
|
||||
|
Reference in New Issue
Block a user