Skip to content

Instantly share code, notes, and snippets.

@switz
Created November 26, 2012 23:39
Show Gist options
  • Save switz/4151390 to your computer and use it in GitHub Desktop.
Save switz/4151390 to your computer and use it in GitHub Desktop.
Derby deployment
if (process.env.NODE_ENV === 'production') {
require('./src/server').listen(process.env.PORT || 3000);
} else {
require('derby').run(__dirname + '/src/server', 3000);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment