Skip to content

Commit

Permalink
(Agrega) Ids de grupos como variables de entorno (#167)
Browse files Browse the repository at this point in the history
* Implementación de zeit/now para los deploys + rewrite (#146)

* (Modifica) cross-env como dependencia

* (Actualiza) Changelog

* (Actualiza) dependencias

* (Agrega) variables de grupo como variables de entorno
  • Loading branch information
leocabeza authored Feb 23, 2019
1 parent e961c22 commit ff290f3
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 44 deletions.
37 changes: 6 additions & 31 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,6 @@
## [Unreleased]

## 4.1.4 (2019-02-22)

### Modificado

- Se cambió cross-env de devDependency a dependency

## 4.1.3 (2019-02-16)

### Modificado

- Cambio de circleci a travisci

## 4.1.2 (2019-02-15)

### Corregido

- Corrección de errores de dependencia

## 4.1.1 (2019-02-15)

### Eliminado

- Dependencia de nodemon

## 4.1.0 (2019-02-15)

### Modificado

- Migración de api de dialogflow de v1 a v2

## 4.0.0 (2019-02-09)
## 4.0.0 (2019-02-23)

### Agregado

Expand All @@ -40,6 +10,11 @@

- Dependencias

### Modificado

- Migración de api de dialogflow de v1 a v2
- Cambio de circleci a travisci

## 3.3.3 (2018-10-27)

### Actualizado
Expand Down
12 changes: 7 additions & 5 deletions now-staging.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
"name": "wengy-ven",
"alias": "wengy-ven--staging.now.sh",
"env": {
"NTBA_FIX_319": "1",
"APP_URL": "@app-url-staging",
"ADMIN_GROUP_ID": "-241180414",
"APP_PORT": "@app-port",
"APP_URL": "@app-url-staging",
"BOT_USERNAME": "LeoTestsBot",
"DIALOGFLOW_CLIENT_EMAIL": "@dialogflow-client-email",
"DIALOGFLOW_PRIVATE_KEY": "@dialogflow-private-key",
"DIALOGFLOW_PROJECT_ID": "@dialogflow-project-id",
"GITHUB_ACCESS_TOKEN": "@github-access-token",
"MAIN_GROUP_ID": "-165387746",
"NODE_ENV": "staging",
"NTBA_FIX_319": "1",
"SENTRY_DSN": "@sentryio-dns-staging",
"TELEGRAM_BOT_TOKEN": "@telegram-bot-token-staging",
"BOT_USERNAME": "LeoTestsBot",
"NODE_ENV": "staging"
"TELEGRAM_BOT_TOKEN": "@telegram-bot-token-staging"
},
"version": 1,
"public": true,
Expand Down
12 changes: 7 additions & 5 deletions now.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@
"name": "wengy-ven",
"alias": "wengy-ven--production.now.sh",
"env": {
"NTBA_FIX_319": "1",
"APP_URL": "@app-url",
"ADMIN_GROUP_ID": "-1001136339977",
"APP_PORT": "@app-port",
"APP_URL": "@app-url",
"BOT_USERNAME": "WengyBot",
"DIALOGFLOW_CLIENT_EMAIL": "@dialogflow-client-email",
"DIALOGFLOW_PRIVATE_KEY": "@dialogflow-private-key",
"DIALOGFLOW_PROJECT_ID": "@dialogflow-project-id",
"GITHUB_ACCESS_TOKEN": "@github-access-token",
"MAIN_GROUP_ID": "-1001031605415",
"NODE_ENV": "production",
"NTBA_FIX_319": "1",
"SENTRY_DSN": "@sentryio-dns",
"TELEGRAM_BOT_TOKEN": "@telegram-bot-token",
"BOT_USERNAME": "WengyBot",
"NODE_ENV": "production"
"TELEGRAM_BOT_TOKEN": "@telegram-bot-token"
},
"version": 1,
"public": true,
Expand Down
6 changes: 4 additions & 2 deletions src/config/telegram.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
const { MAIN_GROUP_ID, ADMIN_GROUP_ID } = process.env;

module.exports = {
mainGroupId: '-165387746',
adminGroupId: '-322716629',
mainGroupId: MAIN_GROUP_ID,
adminGroupId: ADMIN_GROUP_ID,
whiteListedDomains: [
'https://github.com',
'https://medium.com',
Expand Down
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,4 @@ process.on('SIGUSR2', () => {

process.on('uncaughtException', error => {
Sentry.captureException(error);
throw new Error(error);
});

0 comments on commit ff290f3

Please sign in to comment.