Skip to content

Instantly share code, notes, and snippets.

View billwscott's full-sized avatar

Bill Scott billwscott

View GitHub Profile
bilscott@LM-SJN-00872666 ~/dev $ sudo jitsu install ghost
Password:
info: Welcome to Nodejitsu billwscott
info: jitsu v0.13.8, node v0.10.22
info: It worked if it ends with Nodejitsu ok
info: Executing command install ghost
info: Installing ghost locally
warn: Downloading packages from npm, this may take a moment...
npm http GET http://registry.npmjs.org/persistent-ghost
npm http 304 http://registry.npmjs.org/persistent-ghost
@billwscott
billwscott / GhostOnNodeJitsu.md
Last active January 1, 2016 03:39
Notes on ghost installation for nodejitsu

Why a Wrapper?

If you do a standard ghost installation and jitsu deploy, each deploy will overwrite everything on the server -- including content, themes, etc.

To avoid this, nodejitsu created a persistent-ghost wrapper

Installation

Installation instructions are here: http://blog.nodejitsu.com/persistent-ghost-blogging

Here are the steps:

var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs")
port = process.argv[2] || 8888;
http.createServer(function(request, response) {
var uri = url.parse(request.url).pathname
, filename = path.join(process.cwd(), uri);
@billwscott
billwscott / gist:3151596
Created July 20, 2012 16:08 — forked from jeffharrell/gist:3134368
The one page PayPal Express Checkout guide (using cURL)

One page PayPal Express Checkout guide using cURL

To integrate with Express Checkout have your API credentials ready and read on.

Step 1 - Send your transaction data to PayPal (your API credentials are required for safety):