mirror of
https://github.com/krateng/maloja.git
synced 2025-07-31 14:33:50 -04:00
Small fixes
This commit is contained in:
parent
83f1956256
commit
9b23c3bd57
@ -6,8 +6,11 @@ try:
|
|||||||
import toml
|
import toml
|
||||||
with open("./pyproject.toml") as filed:
|
with open("./pyproject.toml") as filed:
|
||||||
metadata = toml.load(filed)['project']
|
metadata = toml.load(filed)['project']
|
||||||
VERSION = metadata['version']
|
VERSION = metadata['version'] + "-dev"
|
||||||
HOMEPAGE = metadata['urls']['homepage']
|
HOMEPAGE = metadata['urls']['homepage']
|
||||||
|
# this will give wrong info when the installed package is run, but we just
|
||||||
|
# happen to be in the directory of the project
|
||||||
|
# but this can't be helped I think
|
||||||
except:
|
except:
|
||||||
|
|
||||||
# package distributrion
|
# package distributrion
|
||||||
|
@ -44,9 +44,9 @@ def start():
|
|||||||
if getInstanceSupervisor() is not None:
|
if getInstanceSupervisor() is not None:
|
||||||
print("Maloja is already running.")
|
print("Maloja is already running.")
|
||||||
else:
|
else:
|
||||||
|
print_header_info()
|
||||||
setup()
|
setup()
|
||||||
try:
|
try:
|
||||||
print_header_info()
|
|
||||||
#p = subprocess.Popen(["python3","-m","maloja.server"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
|
#p = subprocess.Popen(["python3","-m","maloja.server"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
|
||||||
sp = subprocess.Popen(["python3","-m","maloja.proccontrol.supervisor"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
|
sp = subprocess.Popen(["python3","-m","maloja.proccontrol.supervisor"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
|
||||||
print(col["green"]("Maloja started!"))
|
print(col["green"]("Maloja started!"))
|
||||||
|
@ -77,10 +77,10 @@
|
|||||||
|
|
||||||
<h2>Download Data</h2>
|
<h2>Download Data</h2>
|
||||||
|
|
||||||
Download your data to store local backups.<br/><br/>
|
Download your data to have a backup.<br/><br/>
|
||||||
|
|
||||||
<a href="/apis/mlj_1/backup" download="maloja_backup.tar.gz">
|
<a href="/apis/mlj_1/backup" download="maloja_backup.tar.gz">
|
||||||
<button type="button">Download Backup</button>
|
<button type="button">Download</button>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user