Skip to content

Instantly share code, notes, and snippets.

@cbrake
Created July 11, 2012 15:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cbrake/262f4f42e66ce44f4d17 to your computer and use it in GitHub Desktop.
Save cbrake/262f4f42e66ce44f4d17 to your computer and use it in GitHub Desktop.
var express = require('express')
var app = express.createServer()
app.configure(function() {
app.use(app.router)
app.use('/public', express.static(__dirname + '/public'))
})
app.configure('production', function() {
app.set('port', 3000)
})
app.configure('development', function() {
app.set('port', 3000)
})
app.get('/', function(req, res) {
res.redirect('/public/index.html')
})
app.listen(app.settings.port)
jitsu start
info: Welcome to Nodejitsu cbrake
info: It worked if it ends with Nodejitsu ok
info: Executing command start
info: Starting app smartcell-webserver
error: Error running command start
error: Nodejitsu Error (500): Internal Server Error
error:
error: There was an error while attempting to start your application.
error: Error spawning drone
error: Script prematurely exited
error:
error: This type of error is usually a user error.
error: Error output from your application:
error:
error: events.js:48
error: throw arguments[1]; // Unhandled 'error' event
error: ^
error: Error: listen EACCES
error: at errnoException (net.js:670:11)
error: at Array.0 (net.js:756:28)
error: at EventEmitter._tickCallback (node.js:190:38)
info: Nodejitsu not ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment