Toggle navigation
Toggle navigation
This project
Loading...
Sign in
I_Jemin
/
Node-Study
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
I_Jemin
2018-03-23 21:18:01 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b45f51985f7f0ff266c759f594e1b6bb74dfad74
b45f5198
1 parent
c7a60bd9
Use Env Varaiables
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
express-demo/index.js
express-demo/index.js
View file @
b45f519
...
...
@@ -15,6 +15,7 @@ app.get('/api/courses',(req,res) => {
res
.
send
([
1
,
2
,
3
]);
});
app
.
listen
(
3000
,
()
=>
console
.
log
(
"Listening on port 3000"
));
// PORT
const
port
=
process
.
env
.
PORT
||
3000
;
app
.
listen
(
port
,()
=>
console
.
log
(
`Listening on port
${
port
}
...`
));
\ No newline at end of file
...
...
Please
register
or
login
to post a comment