Deploy to Azure App Service

This article explains one way to deploy Weavy to an Azure App Service. For more details and other options you can also read the Microsoft Docs article Deploy ASP.NET Core apps to Azure App Service.

Start by signing into your account on the Azure Portal.

Create web app

Click Create a resource and choose Web App. Select the appropriate subscription and resource group. Enter app Name and select the following values for Publish, Runtime stack and Operating System.

  • Publish: Code
  • Runtime stack: .NET 9
  • Operating System: Windows

Configure the App Service Plan and finish by clicking Review + create.

Create SQL database

Click Create a resource and choose SQL Database. Fill out all required values to create an empty database. Make sure other Azure services can access the database by setting the appropriate firewall rules. Wait for the deployment to finish.

Navigate to your deployed database and click Connection strings. Locate the ADO.NET connection string and save it for later.

You also need to know the username and password of the database server admin. For username, see Server admin on the Overview blade on the database server. If you don't know the password, you can reset it by clicking Reset password, also on the Overview blade.

Configure settings

Navigate to the Web App you deployed earlier and click Settings. Add an environment variable for your Weavy license:

Weavy:License = YOUR-LICENSE-KEY

On the same page, switch to the Connection strings tab and click Add. Enter Weavy as the Name and paste the ADO.NET connection string from the earlier step into the Value field (replacing {your_username} and {your_password} with your SQL Server admin username and password). Finally select SQLAzure in the Type field and click Ok.

Then go to Configuration tab and make sure that Web sockets is On.

Publish and deploy Weavy

Install prerequisites

Download and build

The backend code is available on GitHub. In a terminal window, run the following command to clone the repository:

git clone https://github.com/weavy/weavy-server.git

Instead of cloning, you can also fork the repo. This lets you make changes to the project and allows you to easily fetch updates when we release new versions of Weavy.

Next, build and publish the app by running the dotnet publish command as described below:

dotnet publish -c Release

This compiles the app code and copies dependencies, configuration files, static assets, etc. into the bin/Release/{TARGET FRAMEWORK}/publish folder.

Next, open the Azure portal and navigate to the Overview blade of your Web App. Click Get publish profile. Open the downloaded file and locate the publish profile for FTP. Use publishUrl, userName and userPWD to connect using your favorite FTP client.

<publishData>
  <publishProfile profileName="weavy - FTP" publishMethod="FTP" publishUrl="..." userName="..." userPWD="..."></publishProfile>
</publishData>

Finally, transfer the contents of the bin\Release\{TARGET FRAMEWORK}\publish folder to site\wwwroot on your Web App.

Browse the website

That should be it. Open a browser and navigate to the URL of your Wep App. If everything worked out you should see the Weavy logo on your screen.

Troubleshooting

In case of any errors your we recommend looking at the logfiles in the logs folder. They usually contain valuable information on what went wrong. One common problem is that the database connection string is misconfigured.

Ask AI
Support

To access live chat with our developer success team you need a Weavy account.

Sign in or create a Weavy account