Skip to content

Instantly share code, notes, and snippets.

@Lordnibbler
Last active January 1, 2016 09:59
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 Lordnibbler/1ba219c2e8e3f42ca64e to your computer and use it in GitHub Desktop.
Save Lordnibbler/1ba219c2e8e3f42ca64e to your computer and use it in GitHub Desktop.
~/Code/leds/colorpicker-server jitsu deploy
info: Welcome to Nodejitsu lordnibbler
info: jitsu v0.13.8, node v0.10.22
info: It worked if it ends with Nodejitsu ok
info: Executing command deploy
info: Analyzing application dependencies in bin/colorpicker_server
warn: Local package version appears to be old
warn: The package.json version will be incremented automatically
warn: About to write /Users/meowingtons/Code/leds/colorpicker-server/package.json
data:
data: {
data: author: 'Ben Radler',
data: bugs: { url: 'https://github.com/Lordnibbler/colorpicker-server/issues' },
data: dependencies: {
data: coffee-script: '~1.6.3',
data: express: '~3.4.6',
data: socket.io: '~0.9.16',
data: log: '~1.4.0'
data: },
data: description: 'A Node.js server for socket.io events.',
data: engines: { node: '0.10.x', npm: '1.3.x' },
data: license: 'BSD-2-Clause',
data: name: 'colorpicker-server',
data: repository: { type: 'git', url: 'git://github.com/Lordnibbler/colorpicker-server.git' },
data: scripts: { start: 'bin/colorpicker_server', test: 'mocha -w' },
data: subdomain: 'colorpicker',
data: version: '0.0.0-4'
data: }
data:
prompt: Is this ok?: (yes)
info: Creating snapshot 0.0.0-4
info Uploading: [=============================] 100%
info: Updating app colorpicker-server
info: Activating snapshot 0.0.0-4 for colorpicker-server
info: Starting app colorpicker-server
error: Error running command deploy
error: Errors occured while starting the application
error: Error output from application. This is usually a user error.
error:
error: /opt/run/snapshot/package/bin/colorpicker_server:3
error: ColorPicker = require '../index'
error: ^^^^^^^^^^
error: SyntaxError: Unexpected string
error: at Module._compile (module.js:439:25)
error: at Object.Module._extensions..js (module.js:474:10)
error: at Module.load (module.js:356:32)
error: at Function.Module._load (module.js:312:12)
error: at Function.Module.runMain (module.js:497:10)
error: at startup (node.js:119:16)
error: at node.js:902:3
error:
error: Error starting application. This could be a user error.
error: info: Running start for app.
error: info: Cleaning /opt/run
error: info: Fetching application snapshot...
error: info: Application snapshot fetched.
error: info: Unpacking snapshot...
error: info: Reading `package.json`...
error: info: Starting application...
error: info: Spawn: start --min-uptime 2000 -o /opt/run/forza.log -- forza -h multiplex.nodejitsu.com -p 8556 --start-log /opt/run/start.log --app-user lordnibbler --app-name colorpicker-server -- node bin/colorpicker_server
error: info: `aeternum` pid: 47735
error: info: Writing pidfile: /root/app.pid
error: info: Tailing forza log: /opt/run/start.log
error: info: Tail closing..
error: info: Retry # 1 with 1000ms interval
error: info: Tailing forza log: /opt/run/start.log
error: info: Tail closing..
error: info: Success:start
error:
#!/usr/bin/env ./node_modules/.bin/coffee
ColorPicker = require '../index'
config = require '../src/config'
logger = require '../src/logger'
logger.debug "Loaded config file"
logger.debug JSON.stringify(config, null, 2)
server = ColorPicker.loadServer(
config.server.host,
config.server.port
)
server.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment