Skip to content
GitLab
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
4 years ago
by
Rosanny Sihombing
Browse files
Options
Download
Email Patches
Plain Diff
set env to testing
parent
c16ddf93
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app.js
+1
-1
app.js
routes/dbconn.js
+1
-1
routes/dbconn.js
routes/mailer.js
+1
-1
routes/mailer.js
with
3 additions
and
3 deletions
+3
-3
app.js
+
1
-
1
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
()
...
...
This diff is collapsed.
Click to expand it.
routes/dbconn.js
+
1
-
1
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 ====
...
...
This diff is collapsed.
Click to expand it.
routes/mailer.js
+
1
-
1
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
({
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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