mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-02-01 16:08:17 +00:00
ubuntu desktop need no libcurl4
This commit is contained in:
parent
6d3726e9bd
commit
d330f35c29
@ -20,8 +20,15 @@ function log(data) {
|
||||
*/
|
||||
function startMongoDB(root) {
|
||||
const mongod = os.platform() === 'win32' ? 'mongod.exe' : './mongod';
|
||||
const cwd = path.join(root, 'mongo');
|
||||
|
||||
if (os.platform() !== 'win32') {
|
||||
// ubuntu desktop need libcurl4
|
||||
process.env.LD_LIBRARY_PATH = `LD_LIBRARY_PATH:${cwd}`
|
||||
}
|
||||
|
||||
mongo = subprocess.spawn(mongod, ['--dbpath=db'], {
|
||||
cwd: path.join(root, 'mongo')
|
||||
cwd: cwd
|
||||
});
|
||||
mongo.stdout.on('data', data => {
|
||||
log(data.toString());
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user