Lowdefy
v3.17.2/Deployment/Deploy to Netlify/

Deploy to Netlify

Lowdefy apps can be deployed to Netlify. Netlify integrates with git providers to automatically deploy your app when you merge changes into the main branch of your repository and deploy previews of pull requests. On your Netlify deployment you can set environment variables, manage custom domains and more.

How to Deploy to Netlify

Step 1

Your project will need to be hosted as a Github repository.

Step 2

Link your Github project to Netlify.

  • Once logged in to Netlify, click the "New site from git" button.
  • Choose Github, and authorize Netlify to access your repositories.
  • Select your repository.

If your repository isn't found, click "Configure Netlify on Github", and give Netlify access to your repository.

Step 3

Configure your Netlify deployment.

  • Set your build command to npx lowdefy@latest build-netlify.
  • Set your publish directory to .lowdefy/publish.
  • Review the other settings, and deploy your site.

Your site won't work yet. You first need to configure the Lowdefy server in the next step.

Step 4

Configure the Lowdefy server.

  • Click the "Site settings" button.
  • Choose the "Functions" section in the left menu.
  • Edit the settings and set your functions directory to .lowdefy/functions.

Step 5

Redeploy your site.

  • Go to the "Deploys" tab.
  • Click the "Trigger deploy" button and deploy your site.
  • Wait for you site to finish deploying.

On the "Site overview" tab you will find your site url.

Step 6

To set Lowdefy secrets, go to "Site settings", then "Build and deploy" in the left menu. Scroll down and select "Edit variables" in the "Environment" section. Here you can set the LOWDEFY_SECRET_ environment variables.