added yarn.lock to gitignore and fixed npm start

This commit is contained in:
Cole Chamberlain 2016-10-17 15:11:17 -07:00
parent 58753e0f9e
commit 1c25b51e41
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
node_modules/* node_modules/*
npm-debug.log npm-debug.log
yarn.lock
*data.json *data.json
*.db *.db
.idea/ .idea/

View File

@ -1,6 +1,6 @@
var port = process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || process.env.PORT || process.argv[2] || 80; var port = process.env.OPENSHIFT_NODEJS_PORT || process.env.VCAP_APP_PORT || process.env.PORT || process.argv[2] || 80;
var Gun = require('gun'); var Gun = require('../');
var gun = Gun({ var gun = Gun({
file: 'data.json', file: 'data.json',
s3: { s3: {
@ -22,4 +22,4 @@ var server = require('http').createServer(function(req, res){
gun.wsp(server); gun.wsp(server);
server.listen(port); server.listen(port);
console.log('Server started on port ' + port + ' with /gun'); console.log('Server started on port ' + port + ' with /gun');