Using Geddy without the CLI

Matthew Eernisse edited this page Sep 30, 2013 · 10 revisions

A Geddy app can be created without using the CLI startup-script.

Geddy needs to be installed locally in your apps node_modules directory for this to work.

If you want to run Geddy with its built-in clustering (which uses Node's built-in "cluster" module), start your application up like this:

var geddy = require('geddy');

geddy.startCluster({
  environment: 'production'
, workers: 4
}); 

If you want to run Geddy in the same process, with no workers, start your application like this:

var geddy = require('geddy');

geddy.start({
  environment: 'production'
}); 

Pass the same options to the startup command that you would to the CLI, using the "long" option name.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.