Skip to content

Commit b839869

Browse files
committed
Move email templates to /config/messages.
1 parent d08cf98 commit b839869

File tree

57 files changed

+12
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+12
-1
lines changed

api/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ VOLUME /work/logs
2222
COPY default-product-image.png /work
2323

2424
COPY requirements.txt /work
25+
COPY --from=config messages /config/messages
2526

2627
RUN pip install -U pip
2728
RUN pip install -r /work/requirements.txt

api/src/messages/message.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
from messages.models import Message, MessageTemplate
1010

11-
template_loader = FileSystemLoader(abspath(dirname(dirname(__file__))) + "/templates")
11+
template_loader = FileSystemLoader("/config/messages")
1212
template_env = Environment(loader=template_loader, autoescape=select_autoescape())
1313

1414

api/src/templates/__init__.py

Whitespace-only changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)