Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
Project Page
Commits
b8b6a03e
Commit
b8b6a03e
authored
Jul 10, 2020
by
Rosanny Sihombing
Browse files
set env to testing
parent
c16ddf93
Changes
3
Hide whitespace changes
Inline
Side-by-side
app.js
View file @
b8b6a03e
...
...
@@ -8,7 +8,7 @@ const session = require('express-session')
const
flash
=
require
(
'
express-flash
'
)
const
fileUpload
=
require
(
'
express-fileupload
'
)
var
env
=
process
.
env
.
NODE_ENV
||
'
development
'
var
env
=
process
.
env
.
NODE_ENV
||
'
testing
'
const
config
=
require
(
'
./config/config
'
)[
env
]
var
app
=
express
()
...
...
routes/dbconn.js
View file @
b8b6a03e
const
mysql
=
require
(
'
mysql
'
)
var
env
=
process
.
env
.
NODE_ENV
||
'
development
'
;
var
env
=
process
.
env
.
NODE_ENV
||
'
testing
'
;
const
config
=
require
(
'
../config/config
'
)[
env
]
// ==== USER ACOOUNT DB CONNECTION ====
...
...
routes/mailer.js
View file @
b8b6a03e
const
nodemailer
=
require
(
'
nodemailer
'
)
var
env
=
process
.
env
.
NODE_ENV
||
'
development
'
;
var
env
=
process
.
env
.
NODE_ENV
||
'
testing
'
;
const
config
=
require
(
'
../config/config
'
)[
env
]
var
smtpTransport
=
nodemailer
.
createTransport
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment