1
0
mirror of https://github.com/robonen/canvas-3d.git synced 2026-03-20 02:44:40 +00:00

fix(repo): fix build path in dockerfile, remove imports, add new task in taskfile

This commit is contained in:
2022-11-18 06:49:56 +07:00
parent a3f8fd40fb
commit 56b98265d4
4 changed files with 7 additions and 5 deletions

View File

@@ -15,7 +15,7 @@ FROM node:${NODE_VERSION}
WORKDIR /app WORKDIR /app
COPY --from=builder /build/src/.output . COPY --from=builder /build/.output .
ENV HOST=0.0.0.0 ENV HOST=0.0.0.0
ENV PORT=3000 ENV PORT=3000

View File

@@ -22,6 +22,11 @@ tasks:
cmds: cmds:
- docker-compose -p $APP_NAME up -d - docker-compose -p $APP_NAME up -d
docker:run:build:
deps: [ make:env ]
cmds:
- docker-compose -p $APP_NAME up -d --build
docker:stop: docker:stop:
cmds: cmds:
- docker-compose -p $APP_NAME down - docker-compose -p $APP_NAME down

View File

@@ -1,5 +1,4 @@
// https://v3.nuxtjs.org/api/configuration/nuxt.config // https://v3.nuxtjs.org/api/configuration/nuxt.config
import {defineNuxtConfig} from 'nuxt/config';
import {resolve} from 'path'; import {resolve} from 'path';
const SRC = resolve(__dirname, 'src'); const SRC = resolve(__dirname, 'src');

View File

@@ -1,6 +1,4 @@
import {defineEventHandler} from 'h3'; export default defineEventHandler(() => {
export default defineEventHandler((event) => {
console.log('Request received'); console.log('Request received');
return { return {