mirror of
https://github.com/timmypidashev/web.git
synced 2026-04-14 19:13:51 +00:00
Shared dirs almost ready :D
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
from .navbar import navbar
|
||||
from landing.shared.components import navbar
|
||||
from .footer import footer
|
||||
|
||||
@@ -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)],
|
||||
|
||||
@@ -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.
|
||||
|
||||
1
src/shared/components/__init__.py
Normal file
1
src/shared/components/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .navbar import navbar
|
||||
1
src/shared/pages/__init__.py
Normal file
1
src/shared/pages/__init__.py
Normal file
@@ -0,0 +1 @@
|
||||
from .page404 import page404
|
||||
Reference in New Issue
Block a user