1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-09-16 08:56:19 +02:00

[GH-1256] feat: config file flag (#1418)

* feat: adds support for --config

* feat: adds support for configFilePath in startServer

* chore: removes ugly spacing
This commit is contained in:
Archit Mathur
2021-10-26 17:49:20 +05:30
committed by GitHub
parent 8b66243ca2
commit 5848ea1c07
4 changed files with 29 additions and 20 deletions

View File

@@ -116,7 +116,8 @@ namespace Focalboard {
byte[] filesPathBytes = Encoding.UTF8.GetBytes(filesPath);
byte[] sessionTokenBytes = Encoding.UTF8.GetBytes(sessionToken);
byte[] dbPathBytes = Encoding.UTF8.GetBytes(dbPath);
GoFunctions.StartServer(webFolderBytes, filesPathBytes, port, sessionTokenBytes, dbPathBytes);
byte[] configFilePathBytes = Encoding.UTF8.GetBytes("");
GoFunctions.StartServer(webFolderBytes, filesPathBytes, port, sessionTokenBytes, dbPathBytes, configFilePathBytes);
Debug.WriteLine("Server started");
}
@@ -148,7 +149,7 @@ namespace Focalboard {
static class GoFunctions {
[DllImport(@"focalboard-server.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)]
public static extern void StartServer(byte[] webPath, byte[] filesPath, int port, byte[] singleUserToken, byte[] dbConfigString);
public static extern void StartServer(byte[] webPath, byte[] filesPath, int port, byte[] singleUserToken, byte[] dbConfigString, byte[] configFilePath);
[DllImport(@"focalboard-server.dll", CharSet = CharSet.Unicode, CallingConvention = CallingConvention.StdCall)]
public static extern void StopServer();