fix: Only setting maximum heap size for heroku deployed instances (#12725)

Co-authored-by: Arpit Mohan <mohanarpit@users.noreply.github.com>
This commit is contained in:
Trisha Anand 2022-04-08 18:48:23 +05:30 committed by GitHub
parent 9219545879
commit c37fdb9f1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -224,12 +224,13 @@ if [[ -z "${DYNO}" ]]; then
# Don't run MongoDB if running in a Heroku dyno.
init_mongodb
init_replica_set
else
# These functions are used to limit heap size for Backend process when deployed on Heroku
get_maximum_heap
setup_backend_heap_arg
fi
mount_letsencrypt_directory
check_redis_compatible_page_size
# These functions are used to limit heap size for Backend process when deployed on Heroku
get_maximum_heap
setup_backend_heap_arg
configure_supervisord
CREDENTIAL_PATH="/etc/nginx/passwords"