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 ./mealie/data/templates/recipes.md /app/data/templates/
|
||||||
COPY --from=build-stage /app/dist /app/dist
|
COPY --from=build-stage /app/dist /app/dist
|
||||||
|
|
||||||
|
ENV ENV prod
|
||||||
|
|
||||||
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "9000"]
|
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "9000"]
|
@ -11,7 +11,7 @@ WORKDIR /app
|
|||||||
|
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
# COPY ./mealie /app
|
COPY ./mealie /app
|
||||||
|
|
||||||
|
|
||||||
ENTRYPOINT [ "python" ]
|
ENTRYPOINT [ "python" ]
|
||||||
|
@ -41,3 +41,17 @@ Backend
|
|||||||
# Draft Changelog
|
# Draft Changelog
|
||||||
## v0.0.2
|
## 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"
|
version: "3.1"
|
||||||
services:
|
services:
|
||||||
# Vue Frontend
|
# Vue Frontend
|
||||||
mealie:
|
mealie-frontend:
|
||||||
|
image: mealie-frontend:dev
|
||||||
build:
|
build:
|
||||||
context: ./frontend
|
context: ./frontend
|
||||||
dockerfile: frontend.Dockerfile
|
dockerfile: frontend.Dockerfile
|
||||||
container_name: mealie_frontend
|
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 9920:8080
|
- 9920:8080
|
||||||
|
environment:
|
||||||
|
VUE_APP_API_BASE_URL: "http://mealie-api:9000"
|
||||||
volumes:
|
volumes:
|
||||||
- ./frontend:/app
|
- ./frontend/:/app
|
||||||
|
- /app/node_modules
|
||||||
|
|
||||||
# Fast API
|
# Fast API
|
||||||
mealie-api:
|
mealie-api:
|
||||||
|
image: mealie-api:dev
|
||||||
build:
|
build:
|
||||||
context: ./
|
context: ./
|
||||||
dockerfile: Dockerfile.dev
|
dockerfile: Dockerfile.dev
|
||||||
container_name: mealie-api
|
|
||||||
restart: always
|
restart: always
|
||||||
ports:
|
ports:
|
||||||
- 9921:9000
|
- 9921:9000
|
||||||
|
@ -13,7 +13,7 @@ COPY package*.json ./
|
|||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
# copy project files and folders to the current working directory (i.e. 'app' folder)
|
# copy project files and folders to the current working directory (i.e. 'app' folder)
|
||||||
# COPY . .
|
COPY . .
|
||||||
|
|
||||||
# build app for production with minification
|
# build app for production with minification
|
||||||
# RUN npm run build
|
# RUN npm run build
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
import os
|
||||||
|
|
||||||
import uvicorn
|
import uvicorn
|
||||||
from fastapi import FastAPI
|
from fastapi import FastAPI
|
||||||
@ -24,7 +25,9 @@ WEB_PATH = CWD.joinpath("dist")
|
|||||||
app = FastAPI()
|
app = FastAPI()
|
||||||
|
|
||||||
|
|
||||||
# Mount Vue Frontend
|
# Mount Vue Frontend only in production
|
||||||
|
env = os.environ.get("ENV")
|
||||||
|
if(env == "prod"):
|
||||||
app.mount("/static", StaticFiles(directory=WEB_PATH, html=True))
|
app.mount("/static", StaticFiles(directory=WEB_PATH, html=True))
|
||||||
|
|
||||||
# API Routes
|
# API Routes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user