Deploy on macOS¶
Use this guide to deploy and configure precompiled Virto Commerce Platform V3.
Prerequisites¶
-
- Download .NET Core SDK.
- Install the LTS version, it will include components for build and launch runtime application.
Install LibSass¶
To install LibSass:
- Download the nuget package LibSass Host Native for for OS X (x64).
-
Unzip the package.
-
Move the library to dotnet location path. You can find the location of dotnet using CLI dotnet --info
Download precomplied binaries¶
-
Open the Releases section of the Virto Commerce Platform in GitHub.
-
Find VirtoCommerce.Platform.3.x.x.zip file. This file contains the prebuilt site and can be executed without additional compilation. The source code is not included.
-
Download the binaries using the following command:
-
Unpack the downloaded file to the local directory /vc-platform-3 using the following command:
Now you have the directory with the precompiled files of the Virto Commerce Platform.
Setup Platform¶
To set up the Platform:
Configure application strings¶
To configure application strings:
- Open the appsettings.json file in a text editor.
-
In the ConnectionStrings section, modify the VirtoCommerce node as follows:
"ConnectionStrings": { "VirtoCommerce" : "Data Source={SQL Server URL};Initial Catalog={Database name};Persist Security Info=True;User ID={User name};Password={User password};MultipleActiveResultSets=True;Connect Timeout=30" },
Note
Make sure the user has permission to create new databases.
-
To display images, specify the public url for assets by updating
Assets:FileSystem:PublicUrl
in the Assets section: -
To configure CMS content storage, specify the public url for content for content by updating
Content:FileSystem:PublicUrl
in the Content section: -
Save the appsettings.json file to apply the configurations.
Run Platform by CLI "dotnet"¶
To run the Platform by CLI:
-
Install and trust HTTPS certificate. Run steps described in this article to trust the .NET Core SDK HTTPS development certificate on Linux.
Read more about enforcing HTTPS in ASP.NET Core.
-
Ensure the Connection String includes ;TrustServerCertificate=True; as shown below:
-
Run the Platform using the following command:
export ASPNETCORE_URLS="http://+:5000;https://+:5001" cd vc-platform-3 dotnet VirtoCommerce.Platform.Web.dll
Note
If ports 5000 or 5001 are occupied on your Mac, you can change the port numbers, for example, use 5002 or any other unoccupied port instead of 5000.
-
The output in the console will be similar to the following:
Perform initial sign-in¶
To access the Platform and perform initial sign-in:
- Open your browser and type
https://localhost:5001
. -
If you encounter the Your connection is not private error, click Advanced → Proceed to.... This option allows you to proceed to the website even though the browser has detected an issue with the SSL certificate.
Note
For additional details on addressing this error and using a self-signed certificate, refer to Trust the ASP.NET Core HTTPS development certificate.
-
Upon the first request, the application will create and initialize the database.
-
Once completed, you will be redirected to the sign-in page. Use the following credentials to sign in:
- Login: admin
- Password: store
Your Platform is ready to go.