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

went back localhost db

parent c522b1df
No related branches found
No related tags found
No related merge requests found
......@@ -4,17 +4,17 @@ const chmodr = require("chmodr");
const path = require("path");
module.exports = {
// postStart: async (forgeConfig, options) => {
// const resources = path.join(__dirname, ".webpack/main/resources");
postStart: async (forgeConfig, options) => {
const resources = path.join(__dirname, ".webpack/main/resources");
// chmodr(resources, 0o777, (err) => {
// if (err) {
// console.log("Failed to execute chmod", err);
// } else {
// console.log("Success");
// }
// });
// },
chmodr(resources, 0o777, (err) => {
if (err) {
console.log("Failed to execute chmod", err);
} else {
console.log("Success");
}
});
},
postPackage: async (forgeConfig, options) => {
const resources = path.join(
......
module.exports = {
PORT: "5000",
DATABASE:
"mongodb+srv://skan:skan123@mern.fcmll.mongodb.net/<dbname>?retryWrites=true&w=majority",
DATABASE: "mongodb://localhost/bissprop-db",
// "mongodb+srv://skan:skan123@mern.fcmll.mongodb.net/<dbname>?retryWrites=true&w=majority",
// "mongodb://localhost/bissprop-db"
// "mongodb+srv://skan:skan123@mern.fcmll.mongodb.net/<dbname>?retryWrites=true&w=majority",
//
SECRET: "secret",
};
......@@ -5,25 +5,25 @@ const { exec } = require("child_process");
try {
require("electron-reloader")(module);
} catch (_) {}
// exec(
// "bash " + path.join(__dirname, "resources/checkConda.sh") + " " + __dirname,
// (error, stdout, stderr) => {
// if (error) {
// console.log(`error: ${error.message}`);
// return;
// }
// if (stderr) {
// console.log(`stderr: ${stderr}`);
// return;
// }
// console.log(`stdout: ${stdout}`);
// }
// );
exec(
"bash " + path.join(__dirname, "resources/checkConda.sh") + " " + __dirname,
(error, stdout, stderr) => {
if (error) {
console.log(`error: ${error.message}`);
return;
}
if (stderr) {
console.log(`stderr: ${stderr}`);
return;
}
console.log(`stdout: ${stdout}`);
}
);
// const mongod = () => {
// require(path.join(__dirname, "backend/spawnMongod"));
// };
// mongod();
const mongod = () => {
require(path.join(__dirname, "backend/spawnMongod"));
};
mongod();
const server = () => {
require(path.join(__dirname, "backend/server.js"));
......
......@@ -12,13 +12,7 @@ module.exports = {
from: path.join("resources"),
to: "resources",
globOptions: {
ignore: [
"**/.test/**",
"**/mongo/**",
"**/.snakemake/**",
"**/snakemake/**",
"**/.git/**",
],
ignore: ["**/.test/**", "**/.snakemake/**", "**/.git/**"],
},
},
{ from: path.join("src/backend"), to: "src/backend" },
......
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