-
-
Save cbrake/262f4f42e66ce44f4d17 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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