Skip to content

Commit f154185

Browse files
authored
Update magenx.tf
1 parent 2981915 commit f154185

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

magenx.tf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1722,10 +1722,12 @@ mainSteps:
17221722
--session-save-redis-db=0 \
17231723
--session-save-redis-compression-lib=lz4 \
17241724
-n"
1725+
## clean cache
1726+
rm -rf var/cache var/page_cache
17251727
## configure smtp ses
17261728
su ${var.app["brand"]} -s /bin/bash -c "bin/magento config:set smtp/general/enabled 1"
17271729
su ${var.app["brand"]} -s /bin/bash -c "bin/magento config:set smtp/general/log_email 0"
1728-
su ${var.app["brand"]} -s /bin/bash -c "bin/magento config:set smtp/configuration_option/host email-smtp.eu-west-1.amazonaws.com"
1730+
su ${var.app["brand"]} -s /bin/bash -c "bin/magento config:set smtp/configuration_option/host email-smtp.${data.aws_region.current.name}.amazonaws.com"
17291731
su ${var.app["brand"]} -s /bin/bash -c "bin/magento config:set smtp/configuration_option/port 587"
17301732
su ${var.app["brand"]} -s /bin/bash -c "bin/magento config:set smtp/configuration_option/protocol tls"
17311733
su ${var.app["brand"]} -s /bin/bash -c "bin/magento config:set smtp/configuration_option/authentication login"
@@ -1746,7 +1748,7 @@ mainSteps:
17461748
exit 1
17471749
fi
17481750
git add . -A
1749-
git commit -m ${var.app["brand"]}-release-$(date +'%y%m%d-%H%M%S')
1751+
git commit -m ${var.app["brand"]}-init-$(date +'%y%m%d-%H%M%S')
17501752
git remote add origin codecommit::${data.aws_region.current.name}://${aws_codecommit_repository.app.repository_name}
17511753
git branch -m main
17521754
git push codecommit::${data.aws_region.current.name}://${aws_codecommit_repository.app.repository_name} main

0 commit comments

Comments
 (0)