Changing template dir again
This commit is contained in:
parent
b4745de5cb
commit
7b018bdbcc
|
|
@ -21,7 +21,8 @@ ENV CHROME_BIN=/usr/bin/chromium-browser \
|
|||
WORKDIR /app
|
||||
COPY --from=builder /app/server .
|
||||
COPY --from=builder /app/vault .
|
||||
COPY go/internal/cmc/pdf/templates ./templates
|
||||
COPY go/templates ./templates
|
||||
COPY go/internal/cmc/pdf/templates ./templates/pdf
|
||||
COPY go/static ./static
|
||||
COPY go/.env.example .env
|
||||
EXPOSE 8082
|
||||
|
|
|
|||
|
|
@ -19,7 +19,8 @@ ENV CHROME_BIN=/usr/bin/chromium-browser \
|
|||
|
||||
WORKDIR /app
|
||||
COPY --from=builder /app/server .
|
||||
COPY go/internal/cmc/pdf/templates ./templates
|
||||
COPY go/templates ./templates
|
||||
COPY go/internal/cmc/pdf/templates ./templates/pdf
|
||||
COPY go/static ./static
|
||||
COPY go/.env.example .env
|
||||
EXPOSE 8082
|
||||
|
|
|
|||
|
|
@ -118,6 +118,14 @@ func (g *HTMLDocumentGenerator) BuildInvoiceHTML(data *InvoicePDFData, totalPage
|
|||
filepath.Join("go", "internal", "cmc", "pdf", "templates", "invoice.html"),
|
||||
filepath.Join("go", "internal", "cmc", "pdf", "templates", "header.html"),
|
||||
},
|
||||
{
|
||||
filepath.Join("templates", "pdf", "invoice.html"),
|
||||
filepath.Join("templates", "pdf", "header.html"),
|
||||
},
|
||||
{
|
||||
"/app/templates/pdf/invoice.html",
|
||||
"/app/templates/pdf/header.html",
|
||||
},
|
||||
{
|
||||
filepath.Join("templates", "invoice.html"),
|
||||
filepath.Join("templates", "header.html"),
|
||||
|
|
|
|||
|
|
@ -168,6 +168,14 @@ func (g *HTMLDocumentGenerator) BuildQuoteHTML(data *QuotePDFData, totalPages in
|
|||
filepath.Join("go", "internal", "cmc", "pdf", "templates", "quote.html"),
|
||||
filepath.Join("go", "internal", "cmc", "pdf", "templates", "header.html"),
|
||||
},
|
||||
{
|
||||
filepath.Join("templates", "pdf", "quote.html"),
|
||||
filepath.Join("templates", "pdf", "header.html"),
|
||||
},
|
||||
{
|
||||
"/app/templates/pdf/quote.html",
|
||||
"/app/templates/pdf/header.html",
|
||||
},
|
||||
{
|
||||
filepath.Join("templates", "quote.html"),
|
||||
filepath.Join("templates", "header.html"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue