forked from mirrors/probot
Rename server.js to index.js
This commit is contained in:
parent
015a7f0580
commit
365f16be3f
|
@ -33,12 +33,8 @@ To test with a real GitHub repository, you'll need to create a test repository a
|
||||||
## Debugging
|
## Debugging
|
||||||
|
|
||||||
0. Always run `$ script/bootstrap` and restart the server if package.json has changed.
|
0. Always run `$ script/bootstrap` and restart the server if package.json has changed.
|
||||||
0. To turn on verbose logging, start server by running ` $ LOG_LEVEL=debug GITHUB_TOKEN=xxx script/server`
|
0. To turn on verbose logging, start server by running: `$ LOG_LEVEL=debug script/server`
|
||||||
0. To see what requests are going out, enable debugging mode for GitHub client in `/server.js`:
|
0. To see what requests are going out, start the server by running: `$ LOG_LEVEL=trace script/server`
|
||||||
|
|
||||||
const github = new GitHubApi({
|
|
||||||
debug: true
|
|
||||||
});
|
|
||||||
|
|
||||||
## Adding an action
|
## Adding an action
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"description": "a trainable robot that responds to activity on GitHub",
|
"description": "a trainable robot that responds to activity on GitHub",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node server.js",
|
"start": "node index.js",
|
||||||
"test": "mocha && xo"
|
"test": "mocha && xo"
|
||||||
},
|
},
|
||||||
"author": "Brandon Keepers",
|
"author": "Brandon Keepers",
|
||||||
|
|
Loading…
Reference in New Issue