Skip to content

Commit 7a4c5c3

Browse files
fix(Microservices): refactor project/data_folder_path
1 parent 7809e19 commit 7a4c5c3

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

app/utils/local/microservices.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,12 @@ async function runBack(execName, execPath, args = {}) {
6161
if (!projectFolderPath) {
6262
throw new Error("projectFolderPath is required");
6363
}
64-
let { uploadFolderPath } = args;
65-
if (!uploadFolderPath) {
66-
uploadFolderPath = path.join(projectFolderPath, "uploads");
67-
}
6864
const port = await getAvailablePort();
6965
const backArgs = [
7066
"--port",
7167
String(port),
72-
"--data_folder_path",
68+
"--project_folder_path",
7369
projectFolderPath,
74-
"--upload_folder_path",
75-
uploadFolderPath,
7670
"--allowed_origin",
7771
"http://localhost:*",
7872
"--timeout",
@@ -95,7 +89,7 @@ async function runViewer(execName, execPath, args = {}) {
9589
const viewerArgs = [
9690
"--port",
9791
String(port),
98-
"--data_folder_path",
92+
"--project_folder_path",
9993
projectFolderPath,
10094
"--timeout",
10195
"0",

0 commit comments

Comments
 (0)