mirror of
https://github.com/EvolutionAPI/evolution-api.git
synced 2025-07-27 02:48:39 -06:00
fix: add HEROKU_ENV
This commit is contained in:
parent
88011daf72
commit
05053381ef
4
app.json
4
app.json
@ -171,6 +171,10 @@
|
|||||||
"AUTHENTICATION_JWT_SECRET": {
|
"AUTHENTICATION_JWT_SECRET": {
|
||||||
"description": "The secret for jwt. (only for jwt authentication)",
|
"description": "The secret for jwt. (only for jwt authentication)",
|
||||||
"generator": "secret"
|
"generator": "secret"
|
||||||
|
},
|
||||||
|
"HEROKU_ENV": {
|
||||||
|
"description": "Enable heroku env. (true/false) (only for heroku)",
|
||||||
|
"value": "true"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"formation": {
|
"formation": {
|
||||||
|
@ -161,7 +161,7 @@ export class ConfigService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private loadEnv() {
|
private loadEnv() {
|
||||||
this.env = !(process.env?.DOCKER_ENV === 'true') ? this.envYaml() : this.envProcess();
|
this.env = !(process.env?.DOCKER_ENV === 'true') && !process.env?.HEROKU_ENV ? this.envYaml() : this.envProcess();
|
||||||
this.env.PRODUCTION = process.env?.NODE_ENV === 'PROD';
|
this.env.PRODUCTION = process.env?.NODE_ENV === 'PROD';
|
||||||
if (process.env?.DOCKER_ENV === 'true') {
|
if (process.env?.DOCKER_ENV === 'true') {
|
||||||
this.env.SERVER.TYPE = 'http';
|
this.env.SERVER.TYPE = 'http';
|
||||||
|
Loading…
Reference in New Issue
Block a user