Skip to content

Commit

Permalink
trying to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samilabud committed Jul 14, 2021
1 parent f855c72 commit 85d6327
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ const express = require('express');
//const bodyParser = require('body-parser'); Ya no se usa, ahora se usa el mismo express, ver debajo
const path = require('path');

//usar el .env si no estamos en produccion, de lo contrario setear las variables en produccion tipo:
//heroku config:set STRYPE_SECRET_KEY=1234
if(process.env.NODE_ENV !== 'production'){
require('dotenv').config();
}
Expand Down

0 comments on commit 85d6327

Please sign in to comment.