Skip to content

Commit

Permalink
[Deployment] use absolute path in the email template
Browse files Browse the repository at this point in the history
  • Loading branch information
junhaoliao committed Feb 24, 2022
1 parent 246e116 commit c6ac8a2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Options -MultiViews
RewriteEngine Off
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ /index.html [QSA,L]
DirectoryIndex maintenance.html index.html
#DirectoryIndex maintenance.html index.html
2 changes: 1 addition & 1 deletion application/Profile/DBProfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def __init__(self, app):
# key: user_id, value: True (to indicate the entry exists; can be any dummy value)
self.resend_cooldown = TTLCache(maxsize=1024, ttl=RESEND_COOLDOWN_TTL_SECOND)

with open('application/resources/activation_email_template.html', 'r') as f:
with open('/var/www/ictrl/application/resources/activation_email_template.html', 'r') as f:
self.activation_email_body_template = f.read()

class User(db.Model):
Expand Down

0 comments on commit c6ac8a2

Please sign in to comment.