Shared dirs almost ready :D

This commit is contained in:
Timothy Pidashev
2024-03-11 14:20:55 -07:00
parent 893c59585e
commit 56f799266b
14 changed files with 19 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ RUN mv .web/_static /tmp/_static
RUN rm -rf .web && mkdir .web
RUN mv /tmp/_static .web/_static
# Stage 2: copy artifacts into slim image
# Stage 2: copy artifacts into slim image
FROM python:3.11-slim
WORKDIR /app
RUN adduser --disabled-password --home /app reflex
@@ -51,4 +51,3 @@ RUN /app/.venv/bin/pip install -r /app/requirements.txt
# The following lines are for the specific command for the application.
CMD reflex init && reflex run --env dev

View File

@@ -1,2 +1,2 @@
from .navbar import navbar
from landing.shared.components import navbar
from .footer import footer

View File

@@ -1,7 +1,7 @@
from landing.route import Route
from .index import index
from .page404 import page404
from landing.shared.pages import page404
routes = [
*[r for r in locals().values() if isinstance(r, Route)],

View File

@@ -36,7 +36,7 @@ def webpage(path: str, title: str = "Timothy Pidashev", props=None) -> Callable:
The component with the template applied.
"""
# Import here to avoid circular imports.
from landing.components.navbar import navbar
from landing.shared.components.navbar import navbar
from landing.components.footer import footer
# Wrap the component in the template.

View File

@@ -0,0 +1 @@
from .navbar import navbar

View File

@@ -0,0 +1 @@
from .page404 import page404

View File

View File