“The following content is a question I asked ChatGPT about deploying to a Linux server. Could you please help me confirm if the solution provided by GPT is feasible?”
Running a Wisej application on Linux is a bit different from running it on Windows. You will need to first publish your Wisej project, then copy the published files to your Linux server, and finally run a .NET command on the server to start the application. Here are the steps in detail:
In Visual Studio, right-click on your project and choose “Publish…”. In the publish wizard, choose “Folder” as the publish target and select a folder to store the published files. Click the “Publish” button to start the publishing process.
Use SCP (Secure Copy) or another file transfer tool to copy all the files generated in step 1 to a directory on your Linux server.
First, you need to install the .NET runtime. You can install the .NET runtime with the following commands:
wget https://dot.net/v1/dotnet-install.sh chmod +x dotnet-install.sh ./dotnet-install.sh --channel Current --runtime aspnetcore
Then, start your Wisej application with the following command:
dotnet /path/to/your/published/app/YourAppName.dll
Where /path/to/your/published/app/
is the path to your application’s published files, and YourAppName.dll
is the main DLL file of your application.
Please note that these steps may need to be modified according to your specific situation. For example, the installation of the .NET runtime may need to be done differently depending on your Linux distribution.
Also, make sure you have installed the libgdiplus library and Microsoft’s fonts as per the instructions I provided earlier1.
Hi,
Please refer to our documentation including a video that describes all the details when deploying to Linux:
https://docs.wisej.com/deployment/targets/linux-macos
Best regards
Frank