mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-09 03:04:54 -04:00
Merge pull request #31 from grssmnn/master
Fixed hot-reloading development environment
This commit is contained in:
commit
e9d0a4af38
@ -21,4 +21,6 @@ COPY ./mealie /app
|
||||
COPY ./mealie/data/templates/recipes.md /app/data/templates/
|
||||
COPY --from=build-stage /app/dist /app/dist
|
||||
|
||||
ENV ENV prod
|
||||
|
||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "9000"]
|
@ -11,7 +11,7 @@ WORKDIR /app
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
|
||||
# COPY ./mealie /app
|
||||
COPY ./mealie /app
|
||||
|
||||
|
||||
ENTRYPOINT [ "python" ]
|
||||
|
@ -41,3 +41,17 @@ Backend
|
||||
# Draft Changelog
|
||||
## v0.0.2
|
||||
|
||||
General
|
||||
- Fixed opacity issues with marked steps - [mtoohey31](https://github.com/mtoohey31)
|
||||
- Updated Favicon
|
||||
- Renamed Frontend Window
|
||||
- Added Debug folder to dump scraper data prior to processing.
|
||||
- Improved documentation
|
||||
- Added version tag / relevant links, and new version notifier
|
||||
- Fixed hot-reloading development environment - [grssmnn][https://github.com/grssmnn]
|
||||
|
||||
|
||||
Recipes
|
||||
- Added user feedback on bad URL.
|
||||
- Better backend data validation for updating recipes, avoid small syntax errors corrupting database entry. [Issue #8](https://github.com/hay-kot/mealie/issues/8)
|
||||
- Fixed spacing issue while editing new recipes in JSON
|
||||
|
@ -1 +1 @@
|
||||
docker-compose -f docker-compose.dev.yml build && docker-compose -f docker-compose.dev.yml -p dev-mealie up -d
|
||||
docker-compose -f docker-compose.dev.yml -p dev-mealie up --build
|
@ -1 +1 @@
|
||||
docker-compose build && docker-compose -p mealie up -d
|
||||
docker-compose -p mealie up --build
|
@ -2,23 +2,26 @@
|
||||
version: "3.1"
|
||||
services:
|
||||
# Vue Frontend
|
||||
mealie:
|
||||
mealie-frontend:
|
||||
image: mealie-frontend:dev
|
||||
build:
|
||||
context: ./frontend
|
||||
dockerfile: frontend.Dockerfile
|
||||
container_name: mealie_frontend
|
||||
restart: always
|
||||
ports:
|
||||
- 9920:8080
|
||||
environment:
|
||||
VUE_APP_API_BASE_URL: "http://mealie-api:9000"
|
||||
volumes:
|
||||
- ./frontend:/app
|
||||
- ./frontend/:/app
|
||||
- /app/node_modules
|
||||
|
||||
# Fast API
|
||||
mealie-api:
|
||||
image: mealie-api:dev
|
||||
build:
|
||||
context: ./
|
||||
dockerfile: Dockerfile.dev
|
||||
container_name: mealie-api
|
||||
restart: always
|
||||
ports:
|
||||
- 9921:9000
|
||||
|
@ -13,7 +13,7 @@ COPY package*.json ./
|
||||
RUN npm install
|
||||
|
||||
# copy project files and folders to the current working directory (i.e. 'app' folder)
|
||||
# COPY . .
|
||||
COPY . .
|
||||
|
||||
# build app for production with minification
|
||||
# RUN npm run build
|
||||
|
@ -1,4 +1,5 @@
|
||||
from pathlib import Path
|
||||
import os
|
||||
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
@ -24,8 +25,10 @@ WEB_PATH = CWD.joinpath("dist")
|
||||
app = FastAPI()
|
||||
|
||||
|
||||
# Mount Vue Frontend
|
||||
app.mount("/static", StaticFiles(directory=WEB_PATH, html=True))
|
||||
# Mount Vue Frontend only in production
|
||||
env = os.environ.get("ENV")
|
||||
if(env == "prod"):
|
||||
app.mount("/static", StaticFiles(directory=WEB_PATH, html=True))
|
||||
|
||||
# API Routes
|
||||
app.include_router(recipe_routes.router)
|
||||
|
Loading…
x
Reference in New Issue
Block a user