mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +03:00
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:
parent
b816225dca
commit
a63690a471
11
config.js
11
config.js
@ -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
|
||||||
|
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user