Skip to content

Instantly share code, notes, and snippets.

@scottweinert
scottweinert / gist:5446273
Created April 23, 2013 18:46
package.json
{
"name": "twitterPIE",
"version": "0.0.0-5",
"description": "twitterPIE API server",
"main": "app.js",
"dependencies": {
"application-name": "~0.0.1",
"express": "~3.1.0",
"jade": "*",
"async": "*",
{
__v: 57,
_id: ObjectId("5133bcc1578b45335000064c"),
amenities: [
{
title: "Washer/Dryer",
status: "active",
_id: ObjectId("5133bcc1578b453350000653")
},
{
info: Welcome to Nodejitsu pingplot
info: jitsu v0.12.10-2, node v0.8.4
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node app.js
info: Creating snapshot 0.0.1-1
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: npm http GET https://registry.npmjs.org/async/0.1.22
info: Welcome to Nodejitsu pingplot
info: jitsu v0.12.10-2, node v0.8.4
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node app.js
info: Creating snapshot 0.0.1-1
info Uploading: [=============================] 100%
error: Error running command deploy
error: Nodejitsu Error (500): Internal Server Error
error: npm http GET https://registry.npmjs.org/async/0.1.22
{
"name": "application-name",
"main": "./index.js",
"version": "0.0.1-1",
"private": true,
"directories": {
"lib": "."
},
"dependencies": {
"async": "0.1.22",
Scott-Weinerts-MacBook-Pro-10:pingplot scottweinert$ sudo jitsu deploy
info: Welcome to Nodejitsu pingplot
info: jitsu v0.12.10-2, node v0.8.4
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in node app.js
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /Users/scottweinert/Sites/pingplot/node/pingplot/package.json
warn: Using '*' as a version for dependencies may eventually cause issues
Error: spawn ENOMEM
Error: spawn ENOMEM
at errnoException (child_process.js:847:11)
at ChildProcess.spawn (child_process.js:794:11)
at exports.spawn (child_process.js:618:9)
at gm._spawn (/opt/haibu/apps/pingplot/pingplot/package/node_modules/gm/lib/command.js:179:16)
at gm._exec (/opt/haibu/apps/pingplot/pingplot/package/node_modules/gm/lib/command.js:160:17)
at gm.identify (/opt/haibu/apps/pingplot/pingplot/package/node_modules/gm/lib/getters.js:74:10)
at gm.Object.keys.forEach.proto.(anonymous function) [as orientation] (/opt/haibu/apps/pingplot/pingplot/package/node_modules/gm/lib/getters.js:33:12)
{
"_id":"77942434db502a0e6be2ef9244261fca",
"_rev":"2-19b291c79cbfb7511684df4e48a82c65",
"status":"fail",
"payload":{
"ref":"refs/heads/production",
"after":"709558b012a900919951098bcefb94b7cc4cecbe",
"before":"3f7ab387a1b8aaed7a50cfbc266f16cdf95512fa",
"created":false,
"deleted":false,
The application pingplot has failed to deploy.
Error 500 deploy:nodejitsu:start_app: Unspecified error
Error: Error building snapshot
at Object.nodejitsu.deploy (/opt/haibu/apps/nodejitsu/nodejitsu-webhooks-api/package/lib/nodejitsu.js:150:29)
at Request. (/opt/haibu/apps/nodejitsu/nodejitsu-webhooks-api/package/models/deploy.js:595:29)
at Request.EventEmitter.emit (events.js:117:20)
at IncomingMessage. (/opt/haibu/apps/nodejitsu/nodejitsu-webhooks-api/package/node_modules/request/main.js:617:14)
at IncomingMessage.EventEmitter.emit (events.js:117:20)
@scottweinert
scottweinert / gist:5810239
Created June 18, 2013 22:53
Nodejitsu with socket.io - not working
/**
* Start NodeJS Server
*/
var port = 80;
if (process.env.CRON) { port = 3000; }
var secureServer = require('https').createServer(options, app)
// Initialize Socket IO
Common.io = require('socket.io').listen(secureServer)