Skip to content

Commit

Permalink
Corrección de reinicio
Browse files Browse the repository at this point in the history
Ya no se reinicia, modificacion de datos de contacto y datos de wifi
  • Loading branch information
sabas1080 committed Aug 14, 2015
1 parent cefc3ec commit bef5f3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server-socket/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var RawSocket = require('./lib/raw-socket')
var PeopleAction = require('./lib/action-model')

mongoose.connect('mongodb://localhost/myappdatabase')
RawSocket(3000, onCounterChange)
RawSocket(27017, onCounterChange)

function onCounterChange (newAction) {
console.log('Action: ', newAction)
Expand All @@ -23,7 +23,7 @@ function onCounterChange (newAction) {
})
}

var PORT = process.env.PORT || 8000
var PORT = process.env.PORT || 8080

var pub = __dirname + '/static'
app.use(express.static(pub))
Expand Down

0 comments on commit bef5f3d

Please sign in to comment.