-
Notifications
You must be signed in to change notification settings - Fork 445
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CE-320] Change .env file generate method
Use envsubst instead sed to replace variable in env template. Change-Id: Ib4b71a06fefd3de2678f0e1bdcb6c2d7c2295df7 Signed-off-by: Haitao Yue <hightall@me.com>
- Loading branch information
Showing
6 changed files
with
27 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# smtp server for send email to user | ||
SMTP_SERVER?= | ||
export SMTP_SERVER?= | ||
# smtp port | ||
SMTP_PORT?=587 | ||
export SMTP_PORT?=587 | ||
# auth for smtp | ||
SMTP_AUTH_USERNAME?= | ||
SMTP_AUTH_PASSWORD?= | ||
export SMTP_AUTH_USERNAME?= | ||
export SMTP_AUTH_PASSWORD?= | ||
# email address where sent from | ||
FROM_EMAIL?= | ||
export FROM_EMAIL?= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# web site url for user active link | ||
ROOT_URL?= | ||
export ROOT_URL?= | ||
WEBROOT=$(subst $(SLASH),$(REPLACE_SLASH),$(ROOT_URL)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
STATIC_FOLDER=themes/$THEME/static | ||
TEMPLATE_FOLDER=themes/$THEME/templates | ||
NPM_REGISTRY=$NPM_REGISTRY | ||
DEV=$DEV | ||
ROOT_PATH=$ROOT_PATH | ||
ENABLE_EMAIL_ACTIVE=$ENABLE_EMAIL_ACTIVE | ||
SMTP_SERVER=$SMTP_SERVER | ||
SMTP_PORT=$SMTP_PORT | ||
SMTP_AUTH_USERNAME=$SMTP_AUTH_USERNAME | ||
SMTP_AUTH_PASSWORD=$SMTP_AUTH_PASSWORD | ||
FROM_EMAIL=$FROM_EMAIL | ||
WEBROOT=$ROOT_URL | ||
THEME=$THEME |