Fix relative paths for deployment

In order to run with forever / supervisorctl, the relative paths need to
be converted to full ones based on the __dirname.
This commit is contained in:
Jacob Gable 2013-06-15 10:50:28 -05:00
parent b816225dca
commit a63690a471
2 changed files with 9 additions and 6 deletions

View File

@ -6,11 +6,14 @@
(function () { (function () {
"use strict"; "use strict";
var path = require('path'),
config;
/** /**
* @module config * @module config
* @type {Object} * @type {Object}
*/ */
var config = {}; config = {};
// ## Admin settings // ## Admin settings
@ -59,14 +62,14 @@
testing: { testing: {
client: 'sqlite3', client: 'sqlite3',
connection: { connection: {
filename: './core/shared/data/tests.db' filename: path.join(__dirname, '/core/shared/data/tests.db')
} }
}, },
travis: { travis: {
client: 'sqlite3', client: 'sqlite3',
connection: { connection: {
filename: './core/shared/data/tests.db' filename: path.join(__dirname, '/core/shared/data/tests.db')
} }
// debug: true // debug: true
}, },
@ -74,7 +77,7 @@
development: { development: {
client: 'sqlite3', client: 'sqlite3',
connection: { connection: {
filename: './core/shared/data/testdb.db' filename: path.join(__dirname, '/core/shared/data/testdb.db')
}, },
debug: false debug: false
// debug: true // debug: true

View File

@ -18,8 +18,8 @@
ExampleFilter = require('../content/plugins/exampleFilters'), ExampleFilter = require('../content/plugins/exampleFilters'),
requireTree = require('./shared/require-tree'), requireTree = require('./shared/require-tree'),
themeDirectories = requireTree('content/themes'), themeDirectories = requireTree(path.resolve(__dirname + '../../content/themes')),
pluginDirectories = requireTree('content/plugins'), pluginDirectories = requireTree(path.resolve(__dirname + '../../content/plugins')),
Ghost, Ghost,
instance, instance,