nuxt build
This commit is contained in:
parent
1709fd6a2f
commit
a313062caa
|
@ -1,5 +1,6 @@
|
||||||
services:
|
services:
|
||||||
web:
|
web:
|
||||||
|
restart: always
|
||||||
build:
|
build:
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
ports:
|
ports:
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// https://nuxt.com/docs/api/configuration/nuxt-config
|
// https://nuxt.com/docs/api/configuration/nuxt-config
|
||||||
export default defineNuxtConfig({
|
export default defineNuxtConfig({
|
||||||
devtools: { enabled: true }
|
devtools: { enabled: true },
|
||||||
})
|
})
|
||||||
|
|
2
main.py
2
main.py
|
@ -31,4 +31,4 @@ app.add_middleware(
|
||||||
)
|
)
|
||||||
|
|
||||||
app.mount("/api", api_app)
|
app.mount("/api", api_app)
|
||||||
app.mount("/", StaticFiles(directory="front/dist", html=True), name="front")
|
app.mount("/", StaticFiles(directory="front/.output/public", html=True), name="front")
|
||||||
|
|
|
@ -19,5 +19,5 @@ requires = ["poetry-core"]
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
|
||||||
[tool.taskipy.tasks]
|
[tool.taskipy.tasks]
|
||||||
build = "cd front && npm install && npm run build"
|
build = "cd front && npm install && npm run generate"
|
||||||
start = "uvicorn main:app --reload --host 0.0.0.0"
|
start = "uvicorn main:app --reload --host 0.0.0.0"
|
Loading…
Reference in New Issue