TryGhost/Ghost — pull request #1129 by SBoudrias (2013-10-16 19:14:18+00:00)
Title: Fix bug with running Ghost from external directory

Hi there!

We currently cannot run Ghost from another directory than the root as it uses relative paths all over the place. This mean that when the CWD is not the index.js directory, paths breaks.

So here I just enforce the CWD of the Ghost process to be the root of the project.

``` bash
# Currently this break, the fix allow this
$ node /www/ghost/index.js
```

This may be minor, but when running Ghost/Node as a service on a Unix server, being able to launch Ghost from an external directory is useful.