浏览代码

디렉토리 변경

잉여개발기 9 月之前
父节点
当前提交
3af3b18232
共有 5 个文件被更改,包括 10 次插入10 次删除
  1. 2 2
      .gitignore
  2. 6 6
      app.py
  3. 0 0
      bin/test
  4. 1 1
      route/tool/func.py
  5. 1 1
      run_ubuntu.sh

+ 2 - 2
.gitignore

@@ -32,8 +32,8 @@ views/sl_open
 views/nitori
 views/nitori
 views/jsonnamu
 views/jsonnamu
 
 
-route_go/bin/*
-!route_go/bin/test
+bin/*
+!bin/test
 
 
 sitemap.xml
 sitemap.xml
 sitemap_0.xml
 sitemap_0.xml

+ 6 - 6
app.py

@@ -49,7 +49,7 @@ with get_db_connect(init_mode = True) as conn:
 
 
     if run_mode != 'dev':
     if run_mode != 'dev':
         file_name = linux_exe_chmod()
         file_name = linux_exe_chmod()
-        local_file_path = os.path.join("route_go", "bin", file_name)
+        local_file_path = os.path.join("bin", file_name)
 
 
         if not (setup_tool == "normal" and os.path.exists(local_file_path)):
         if not (setup_tool == "normal" and os.path.exists(local_file_path)):
             if os.path.exists(local_file_path):
             if os.path.exists(local_file_path):
@@ -246,16 +246,16 @@ for for_a in server_set:
 
 
 if platform.system() == 'Linux':
 if platform.system() == 'Linux':
     if platform.machine() in ["AMD64", "x86_64"]:
     if platform.machine() in ["AMD64", "x86_64"]:
-        cmd = [os.path.join(".", "route_go", "bin", "main.amd64.bin")]
+        cmd = [os.path.join(".", "bin", "main.amd64.bin")]
     else:
     else:
-        cmd = [os.path.join(".", "route_go", "bin", "main.arm64.bin")]
+        cmd = [os.path.join(".", "bin", "main.arm64.bin")]
 elif platform.system() == 'Darwin':
 elif platform.system() == 'Darwin':
-    cmd = [os.path.join(".", "route_go", "bin", "main.mac.arm64.bin")]
+    cmd = [os.path.join(".", "bin", "main.mac.arm64.bin")]
 else:
 else:
     if platform.machine() in ["AMD64", "x86_64"]:
     if platform.machine() in ["AMD64", "x86_64"]:
-        cmd = [os.path.join(".", "route_go", "bin", "main.amd64.exe")]
+        cmd = [os.path.join(".", "bin", "main.amd64.exe")]
     else:
     else:
-        cmd = [os.path.join(".", "route_go", "bin", "main.arm64.exe")]
+        cmd = [os.path.join(".", "bin", "main.arm64.exe")]
         
         
 cmd += [server_set["golang_port"]]
 cmd += [server_set["golang_port"]]
 if run_mode != '':
 if run_mode != '':

+ 0 - 0
route_go/bin/test → bin/test


+ 1 - 1
route/tool/func.py

@@ -867,7 +867,7 @@ def set_init_always(conn, ver_num, run_mode):
     # OS마다 실행 파일 설정
     # OS마다 실행 파일 설정
     exe_type = linux_exe_chmod()
     exe_type = linux_exe_chmod()
     if platform.system() == 'Linux' or platform.system() == 'Darwin':
     if platform.system() == 'Linux' or platform.system() == 'Darwin':
-        os.system('chmod +x ./route_go/bin/' + exe_type)
+        os.system('chmod +x ./bin/' + exe_type)
 
 
 def linux_exe_chmod():
 def linux_exe_chmod():
     exe_type = ''
     exe_type = ''

+ 1 - 1
run_ubuntu.sh

@@ -1,4 +1,4 @@
-chmod +x ./route_go/bin
+chmod +x ./bin
 
 
 pip3 install --upgrade -r requirements.txt
 pip3 install --upgrade -r requirements.txt
 python3 app.py
 python3 app.py