mirror of https://github.com/docker/docs.git
Fixed space in path problem.
This commit is contained in:
parent
66c40a8787
commit
a004453ba0
4
index.js
4
index.js
|
@ -7,7 +7,7 @@ var path = require('path');
|
||||||
var app = require('app');
|
var app = require('app');
|
||||||
var BrowserWindow = require('browser-window');
|
var BrowserWindow = require('browser-window');
|
||||||
|
|
||||||
var dirname = __dirname.replace(' ', '\\ ');
|
var dirname = __dirname;
|
||||||
console.log(dirname);
|
console.log(dirname);
|
||||||
|
|
||||||
var freeport = function (callback) {
|
var freeport = function (callback) {
|
||||||
|
@ -29,7 +29,7 @@ var start = function (callback) {
|
||||||
} else {
|
} else {
|
||||||
process.stdout.write('Starting production server\n');
|
process.stdout.write('Starting production server\n');
|
||||||
if (os.platform() === 'darwin') {
|
if (os.platform() === 'darwin') {
|
||||||
var kitePath = path.join(process.env.HOME, 'Library/Application\\ Support/Kitematic/');
|
var kitePath = path.join(process.env.HOME, 'Library/Application Support/Kitematic/');
|
||||||
var dataPath = path.join(kitePath, 'data');
|
var dataPath = path.join(kitePath, 'data');
|
||||||
console.log(dataPath);
|
console.log(dataPath);
|
||||||
var bundlePath = path.join(kitePath, 'bundle');
|
var bundlePath = path.join(kitePath, 'bundle');
|
||||||
|
|
|
@ -7,7 +7,7 @@ Boot2Docker = {};
|
||||||
Boot2Docker.REQUIRED_IP = '192.168.60.103';
|
Boot2Docker.REQUIRED_IP = '192.168.60.103';
|
||||||
|
|
||||||
Boot2Docker.command = function () {
|
Boot2Docker.command = function () {
|
||||||
return path.join(Util.getBinDir(), 'boot2docker-1.2.0') + ' --vm="kitematic-vm"';
|
return path.join(Util.getBinDir().replace(' ', '\\ '), 'boot2docker-1.2.0') + ' --vm="kitematic-vm"';
|
||||||
};
|
};
|
||||||
|
|
||||||
Boot2Docker.exec = function (command, callback) {
|
Boot2Docker.exec = function (command, callback) {
|
||||||
|
|
|
@ -73,7 +73,7 @@ Sync.addAppWatcher = function (app) {
|
||||||
if (err.indexOf('The archive file is missing on some hosts') !== -1) {
|
if (err.indexOf('The archive file is missing on some hosts') !== -1) {
|
||||||
results = archiveErrorPattern.exec(err);
|
results = archiveErrorPattern.exec(err);
|
||||||
location = results[1].replace(' ', '\\ ');
|
location = results[1].replace(' ', '\\ ');
|
||||||
var fullLocation = path.join(Util.getHomePath(), 'Library/Application\\ Support/Unison', location);
|
var fullLocation = path.join(Util.getHomePath(), 'Library/Application Support/Unison', location);
|
||||||
var cmd = '/bin/rm -rf ' + fullLocation;
|
var cmd = '/bin/rm -rf ' + fullLocation;
|
||||||
exec(cmd, function () {});
|
exec(cmd, function () {});
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ Util.getBinDir = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
Util.getResourceDir = function () {
|
Util.getResourceDir = function () {
|
||||||
return path.join(Util.getHomePath(), 'Library/Application\\ Support/Kitematic/Resources');
|
return path.join(Util.getHomePath(), 'Library/Application Support/Kitematic/Resources');
|
||||||
};
|
};
|
||||||
|
|
||||||
Util.KITE_PATH = path.join(Util.getHomePath(), 'Kitematic');
|
Util.KITE_PATH = path.join(Util.getHomePath(), 'Kitematic');
|
||||||
|
|
Loading…
Reference in New Issue