Skip to content
Snippets Groups Projects
Commit 75737186 authored by Skander Hatira's avatar Skander Hatira
Browse files

file path fixes on mac

parent 030d89a8
No related branches found
No related tags found
No related merge requests found
......@@ -29,8 +29,9 @@ const spawnChild = async () => {
// )
// : "";
console.log(process.env.SHELL);
// const logfile = "/home/shatira/mongoWindow.txt";
// const output = fs.openSync(logfile, "a");
const homedir = require("os").homedir();
const logfile = path.join(homedir, "mongoWindow.txt");
const output = fs.openSync(logfile, "a");
const command =
process.platform == "win32" ? "conda" : `$HOME/miniconda3/bin/conda`;
......@@ -41,7 +42,7 @@ const spawnChild = async () => {
process.platform == "win32"
? process.env.ComSpec
: `${process.env.SHELL}`,
// stdio: ["ignore", output, output],
stdio: ["ignore", output, output],
};
const port = 27017;
......@@ -55,6 +56,8 @@ const spawnChild = async () => {
"run",
"-n",
"bisepsMongo",
"--no-capture-output",
"--live-stream",
"mongod",
"--port",
port,
......@@ -62,8 +65,6 @@ const spawnChild = async () => {
dbpath,
"--bind_ip",
unixSocket,
"--filePermissions",
"0777",
],
options
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment