Rename server.js to index.js

This commit is contained in:
Brandon Keepers 2017-02-24 20:32:00 -06:00
parent 015a7f0580
commit 365f16be3f
No known key found for this signature in database
GPG Key ID: F9533396D5FACBF6
3 changed files with 3 additions and 7 deletions

View File

@ -33,12 +33,8 @@ To test with a real GitHub repository, you'll need to create a test repository a
## Debugging
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 see what requests are going out, enable debugging mode for GitHub client in `/server.js`:
const github = new GitHubApi({
debug: true
});
0. To turn on verbose logging, start server by running: `$ LOG_LEVEL=debug script/server`
0. To see what requests are going out, start the server by running: `$ LOG_LEVEL=trace script/server`
## Adding an action

View File

View File

@ -4,7 +4,7 @@
"description": "a trainable robot that responds to activity on GitHub",
"main": "index.js",
"scripts": {
"start": "node server.js",
"start": "node index.js",
"test": "mocha && xo"
},
"author": "Brandon Keepers",