Update Ring Notepad - Run Web Application - Check the application folder before running the Web Server again.
@@ -138,6 +138,8 @@ Class RNoteController from WindowsControllerParent
# Methods
cpGetProcessData = Method(:pGetProcessData)
+ cWebApplicationFolder = ""
+
CreateMainWindow()
func CreateMainWindow
@@ -2427,8 +2429,10 @@ Class RNoteController from WindowsControllerParent
func RunWebApplication cFile
if isWindows()
+ if cWebApplicationFolder != JustFilePath(cFile)
+ cWebApplicationFolder = JustFilePath(cFile)
new ServerPrepare {
- setApplicationPath(JustFilePath(cFile))
+ setApplicationPath(this.cWebApplicationFolder)
PrepareConfigurationFile()
cServerExe = getserverExeFile()
}
@@ -2436,6 +2440,8 @@ Class RNoteController from WindowsControllerParent
oProcess.waitForFinished(3000)
oWebServerProcess = pRunProcess(cServerEXE,"",cpGetProcessData)
sleep(3)
+ oProcessEditbox.setplaintext("")
+ ok
new QDesktopServices {
OpenURL(new qURL("http://localhost:8080/"+JustFileName(cFile)))
}
