Created
September 1, 2012 00:31
-
-
Save dhackney/3561828 to your computer and use it in GitHub Desktop.
dhackney - receive deploy errir
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
C:\files\business\crosstalk\development\node\tt\ttapp>jitsu deploy receive | |
info: Welcome to Nodejitsu dhackney | |
info: jitsu v0.9.8 | |
info: It worked if it ends with Nodejitsu ok | |
info: Executing command deploy receive | |
info: Analyzing application dependencies in receive | |
info: Creating snapshot 0.0.4 | |
info: Updating app receive | |
info: Activating snapshot 0.0.4 for receive | |
info: Starting app receive | |
error: Error running command deploy receive | |
error: Nodejitsu Error (500): Internal Server Error | |
error: There was an error while attempting to deploy the app | |
error: | |
error: Error spawning drone | |
error: Script took too long to listen on a socket | |
error: | |
error: This type of error is usually a user error. | |
error: Error output from Haibu: | |
error: | |
error: Error: Error spawning drone | |
error: at Object.onTimeout [as _onTimeout] (/root/haibu-orchestra/node_modules/haibu | |
/lib/haibu/core/spawner.js:396:15) | |
error: at Timer.list.ontimeout (timers.js:101:19) | |
help: For help with this error contact Nodejitsu Support: | |
help: webchat: <http://webchat.nodejitsu.com/> | |
help: irc: <irc://chat.freenode.net/#nodejitsu> | |
help: email: <support@nodejitsu.com> | |
help: | |
help: Copy and paste this output to a gist (http://gist.github.com/) | |
info: Nodejitsu not ok | |
C:\files\business\crosstalk\development\node\tt\ttapp> | |
******************************************************************************************** | |
package.json: | |
{ | |
"name": "receive", | |
"subdomain": "dhackney.tt8", | |
"scripts": { | |
"start": "receive" | |
}, | |
"version": "0.0.4", | |
"engines": { | |
"node": "0.8.x" | |
}, | |
"dependencies": { | |
"twilio-api": "0.3.1", | |
"express": "3.0.x" | |
} | |
} | |
******************************************************************************************** | |
receive.js: | |
// | |
// receive sms | |
// | |
// listens for an incoming SMS text message via Twilio and twilio-api module | |
// | |
// | |
// | |
console.log ("\n"); | |
console.log ("** head ** head ** head ** head **"); | |
console.log ("****************"); | |
console.log ("\n"); | |
var http = require('http'); | |
var express = require('express'), | |
app = express(); | |
app.set('port', 8080); | |
http.createServer(app).listen(app.get('port'), function(){ | |
console.log("Express server listening on port %d", app.get('port')); | |
}); | |
// create a client | |
var twilioAPI = require('twilio-api'); | |
var cli = new twilioAPI.Client( "x", "y"); | |
// | |
app.use(cli.middleware() ); | |
// | |
//Get a Twilio application and register it | |
cli.account.getApplication("z", function(err, app) { | |
if(err) throw err; | |
app.register(); | |
app.on('incomingSMSMessage', function(smsMessage) { | |
console.log ( "message received"); | |
console.log ( "from: " + sms.From) | |
console.log ( "body: " + sms.Body); | |
}); | |
}); | |
console.log ("\n"); | |
console.log ("****************"); | |
console.log ("** tail ** tail ** tail ** tail **"); | |
console.log ("\n"); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment