Install script shows custom port

This commit is contained in:
Krateng 2019-03-29 21:02:27 +01:00
parent 2f30157b04
commit e78373fb16
2 changed files with 7 additions and 3 deletions

8
maloja
View File

@ -192,10 +192,12 @@ def start():
p = subprocess.Popen(["python3","server.py"],stdout=subprocess.DEVNULL,stderr=subprocess.DEVNULL)
print(green("Maloja started!") + " PID: " + str(p.pid))
print("Visit your server address (Port 42010) to see your web interface. Visit /setup to get started.")
port = settings.get_settings("WEB_PORT")
print("Visit your server address (Port " + str(port) + ") to see your web interface. Visit /setup to get started.")
print("If you're installing this on your local machine, these links should get you there:")
print("\t" + blue("http://localhost:42010"))
print("\t" + blue("http://localhost:42010/setup"))
print("\t" + blue("http://localhost:" + str(port)))
print("\t" + blue("http://localhost:" + str(port) + "/setup"))
return True
#else:
# os.chdir("/opt/maloja/")

View File

@ -18,3 +18,5 @@ replaceartist Sir James Galway Viggo Mortensen And Renée Fleming Album Version
notanartist In Dreams
notanartist Aniron Theme For Aragorn And Arwen
notanartist Lament for Gandalf
replaceartist James Galway Sir James Galway
replaceartist Ben del Maestro Ben Del Maestro

Can't render this file because it has a wrong number of fields in line 4.