Deploying

This project is hosted on Render, which offers a free and simple way to host a web app with a single service.

Deploy with Render

To deploy the app on Render, follow this procedure:

  1. Create a new Web Service

_images/render_01.PNG
  1. Build and deploy from a Git repository

_images/render_02.PNG
  1. Connect a repository

_images/render_03.PNG

Connect to GitHub / GitLab, or provide the URL of your public repository.

  1. Configure the Web Service

Specify the name of the project, the main branch of the project’s repository, and the runtime as Docker.

_images/render_04.PNG
  1. Configure necessary environment variables

See this section for more details about the necessary environment variables.

_images/render_05.PNG
  1. Configure Docker

Specify the relative path of the Dockerfile and disable auto-deploy.

_images/render_06.PNG
  1. Deploy the website by clicking on the dedicated button at the bottom of the page.

Administrate with Render

Once the website is deployed, it will become available in your dashboard:

_images/render_07.PNG

Then, you’ll have access to the administration panel of Render, offering you the possibility to administate the deployed website:

_images/render_08.PNG

Automate the Deployment

To relaunch automated deployment from an external service (such as a CI/CD pipeline), you’ll need to get a Deploy hook, which is a URL to make requests to, in order to tell Render to relaunch the deployment of the website from your repository.

To get the webhook, go to Settings / Build and Deploy and copy the URL in the “Deploy hook” section:

_images/render_09.PNG

Warning

Ensure to keep the URL secret.

Then, to relaunch the build and deployment of your app, just send a request to the given deploy hook:

curl https://deploy/hook/url