Toggle navigation
Toggle navigation
This project
Loading...
Sign in
kykint
/
TELEGRAMBOT
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
kykint
2019-05-27 22:58:43 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
15f5dc34cdaad38aa2da43f5dbc4fa16f60e82f3
15f5dc34
1 parent
f3dcc4da
Fix startup
Server can now be executed with `npm start`.
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
app.js
bin/www
package.json
app.js
View file @
15f5dc3
...
...
@@ -108,6 +108,4 @@ function handleEvent(event) {
});
}
app
.
listen
(
3000
,
function
()
{
console
.
log
(
'Linebot listening on port 3000!'
);
});
module
.
exports
=
app
;
\ No newline at end of file
...
...
bin/www
View file @
15f5dc3
...
...
@@ -7,6 +7,7 @@
var
app
=
require
(
'../app'
);
var
debug
=
require
(
'debug'
)(
'project:server'
);
var
http
=
require
(
'http'
);
var
fs
=
require
(
'fs'
);
/**
* Get port from environment and store in Express.
...
...
@@ -25,7 +26,9 @@ var server = http.createServer(app);
* Listen on provided port, on all network interfaces.
*/
server
.
listen
(
port
);
server
.
listen
(
port
,
function
()
{
console
.
log
(
'Linebot listening on port '
+
port
+
'!'
);
});
server
.
on
(
'error'
,
onError
);
server
.
on
(
'listening'
,
onListening
);
...
...
package.json
View file @
15f5dc3
...
...
@@ -5,7 +5,7 @@
"main"
:
"app.js"
,
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"start"
:
"node
server.js
"
"start"
:
"node
./bin/www
"
},
"author"
:
"강수인"
,
"license"
:
"MIT"
,
...
...
Please
register
or
login
to post a comment