Skip to content

Commit

Permalink
fix error missing resource in docker file
Browse files Browse the repository at this point in the history
  • Loading branch information
cauta committed Apr 9, 2024
1 parent 6a542e1 commit 3bec20f
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/apps/onebox/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ RUN yarn install --production

COPY ./dist/apps/onebox ./dist/apps/onebox

# COPY --from=development /usr/src/app/dist ./dist
COPY ./resources ./resources

CMD ["node", "dist/apps/onebox/main.js"]
6 changes: 3 additions & 3 deletions app/apps/onebox/src/modules/users/users.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class UsersService {
}).save();
const linkLogin = `https://${process.env.WEB_DOMAIN}/login`;
const emailBody = await renderTemplate(
'apps/onebox/src/resources/email_template/welcome.html',
'resources/email_template/welcome.html',
{
linkLogin,
},
Expand Down Expand Up @@ -161,7 +161,7 @@ export class UsersService {
);
const linkResetPassword = `https://${process.env.WEB_DOMAIN}/reset-password?token=${forgotPasswordToken}&email=${user.email}`;
const emailBody = await renderTemplate(
'apps/onebox/src/resources/email_template/forgot_password.html',
'resources/email_template/forgot_password.html',
{
linkResetPassword,
expire: new Date(forgotPasswordExpire).toUTCString(),
Expand Down Expand Up @@ -209,7 +209,7 @@ export class UsersService {
);
const linkLogin = `https://${process.env.WEB_DOMAIN}/login`;
const emailBody = await renderTemplate(
'apps/onebox/src/resources/email_template/reset_password_success.html',
'resources/email_template/reset_password_success.html',
{
linkLogin,
},
Expand Down
File renamed without changes.

0 comments on commit 3bec20f

Please sign in to comment.