mirror of
https://github.com/MikroWizard/mikroman.git
synced 2025-06-20 19:45:40 +02:00
7 lines
227 B
Python
7 lines
227 B
Python
"""Server database migrate"""
|
|
import subprocess
|
|
|
|
dir ="/app/"
|
|
cmd = "cd {}; PYTHONPATH={}py PYSRV_CONFIG_PATH={} python3 scripts/dbmigrate.py".format(dir, dir, "/app/real-server-config.json")
|
|
subprocess.Popen(cmd, shell=True)
|
|
|