mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-06-21 03:55:39 +02:00
8 lines
232 B
Python
8 lines
232 B
Python
|
"""Server database migrate"""
|
||
|
import subprocess
|
||
|
|
||
|
dir ="/app/"
|
||
|
cmd = "cd {}; PYTHONPATH={}py PYSRV_CONFIG_PATH={} python3 scripts/dbmigrate.py".format(dir, dir, "/opt/mikrowizard/server-conf.json")
|
||
|
subprocess.Popen(cmd, shell=True)
|
||
|
|