Skip to content

Instantly share code, notes, and snippets.

View wamoyo's full-sized avatar
😜
Codin' on

Costa Michailidis wamoyo

😜
Codin' on
View GitHub Profile
var style = {
base: {
fontFamily: 'Helvetica Neue, Helvetica, Arial, sans-serif',
fontSize: '16px',
lineHeight: '24px'
}
}
var card = elements.create('card', {style: style})
@wamoyo
wamoyo / blue-green.js
Created January 24, 2015 07:03
Doing a Blue-Green (zero downtime) deployment for node.js apps on Bluemix (not finished yet)
/*
* Use this to do a blue-green (zero downtime) deployment on Bluemix for Node.js apps.
*/
var bash = require('child_process');
var util = require('util');
var routesBash;
var events = require('events');
var emitter = new events.EventEmitter();
@wamoyo
wamoyo / staging.js
Created January 24, 2015 02:49
A quick way to stage and application to nodejitsu (doesn't yet copy environment variables)
/*
* Use this file to deploy an app to the staging server on nodejitsu.
*/
var fs = require('fs');
var package = '';
var bash = require('child_process');
var jitsu;