lib changed to headers
This commit is contained in:
@@ -11,10 +11,10 @@ titles_path = '/session_server_config/titles.json'
|
|||||||
|
|
||||||
# nginx config
|
# nginx config
|
||||||
|
|
||||||
server_domain = 'a1.test.sess.graff.tech'
|
server_domain = 'a2.sess.graff.tech'
|
||||||
session_server_ip = "192.168.1.115"
|
session_server_ip = "192.168.0.10"
|
||||||
server_postfix = "s1"
|
server_postfix = "s1"
|
||||||
session_server_port = 3005
|
session_server_port = 3005
|
||||||
|
|
||||||
session_begin_port = 14000
|
session_begin_port = 14000
|
||||||
session_limit = 7
|
session_limit = 4
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import subprocess
|
||||||
|
|
||||||
|
def run_command(cmd, directory):
|
||||||
|
command = subprocess.run(["powershell", "-Command", cmd], cwd=directory, shell=True, check=True)
|
||||||
|
return command
|
||||||
|
|
||||||
|
def run_command_no_dir(cmd):
|
||||||
|
command = subprocess.run(["powershell", "-Command", cmd], shell=True, check=True)
|
||||||
|
return command
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import config
|
import config
|
||||||
import lib.powershell as powershell
|
import headers.powershell as powershell
|
||||||
import shutil
|
import shutil
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import config
|
import config
|
||||||
import lib.powershell as powershell
|
import headers.powershell as powershell
|
||||||
import os
|
import os
|
||||||
|
|
||||||
deploy_path = config.deploy_path
|
deploy_path = config.deploy_path
|
||||||
|
|||||||
Reference in New Issue
Block a user