Skip to content

Commit

Permalink
Fix certificateFolder and rootFolder properties in _startWebServer.4dm
Browse files Browse the repository at this point in the history
  • Loading branch information
yannicktrinh committed Apr 17, 2024
1 parent 6c31251 commit e436308
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Project/Sources/Methods/_startWebServer.4dm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If (Not($webServer.isRunning))
$settings.HTTPSEnabled:=$bIsSSL
If ($bIsSSL)
$settings.HTTPSPort:=$port
$settings.certificateFolder:=Folder("/PACKAGE/";*)
$settings.certificateFolder:=Folder("/PACKAGE/"; *)
Else
$settings.HTTPPort:=$port
End if
Expand All @@ -33,6 +33,8 @@ If (Not($webServer.isRunning))
Else
$settings.rootFolder:=Folder($inParameters.webFolder; fk platform path)
End if
Else
$settings.rootFolder:=Folder(fk web root folder; *)
End if

var $status : Object:=$webServer.start($settings)
Expand Down
4 changes: 2 additions & 2 deletions Project/Sources/settings.4DSettings
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?><preferences stamp="6">
<?xml version="1.0" encoding="UTF-8"?><preferences stamp="7">
<com.4d>
<compiler>
<options compilation_path="3" syntax_file="true"/>
</compiler>
<general component_classStore_name="NetKit"/>
<web>
<standalone_server>
<configuration>
<configuration session_mode="2">
<hosts>
<host home_page="" id="0" name="default"/>
</hosts>
Expand Down

0 comments on commit e436308

Please sign in to comment.