Render.com¶
Warning
This page hasn’t been updated to xlwings Server v1.0 yet.
Render offers a free tier that can be used to test-drive xlwings Server. The fastest way (less than a minute) is to deploy the official Docker container. This means, however, that you will only be able to try out the examples that ship with xlwings Server. If you’d like to make changes to the repo, you would need to connect to your own repository. This means, you’ll need to set up your own repo first and building the service might take up to a few minutes. Let’s look at both of these options!
Deploy a single Docker container¶
On the Render dashboard, click on
+ Newon the top right and selectWeb Servicein the dropdown.Activate the
Existing Imagetab and pastexlwings/xlwings-serveras the Image URL. Then click onConnect.Select a
Regionthat’s close to you (optional).Under
Instance Type, select an appropriate plan.Freeis good enough for a test drive.Under
Environment Variables, addXLWINGS_LICENSE_KEYasNAME_OF_VARIABLEand your license key asvalue.Click on
Deploy Web Service. After less than 1 minute, you should see:Your service is live 🎉.Click on the URL of your service (e.g., https://yourname.onrender.com). If you see
{"status": "ok"}, everything is working correctly.
Note
The free plan spins down with inactivity, which means that next time you’re using your Excel add-in, it will take around 30 seconds until xlwings Server will be available again.
This setup lets you test everything, but since it runs a single container, it is most likely not suitable for production.
Deploy from a Git repository¶
On the Render dashboard, click on
+ Newon the top right and selectWeb Servicein the dropdown.Under
Git Provider, select your repo, thenConnect. If you haven’t connected with your Git provider previously, you’ll need to do that first.Select a
Regionthat’s close to you (optional).Under
Instance Type, select an appropriate plan.Freeis good enough for a test drive.Under
Environment Variables, addXLWINGS_LICENSE_KEYasNAME_OF_VARIABLEand your license key asvalue.Click on
Deploy Web Service. After a couple of minutes, you should see:Your service is live 🎉.Click on the URL of your service (e.g., https://yourname.onrender.com). If you see
{"status": "ok"}, everything is working correctly.
Note
The free plan spins down with inactivity, which means that next time you’re using your Excel add-in, it will take around 30 seconds until xlwings Server will be available again.
This setup lets you test everything, but since it runs a single container, it is most likely not suitable for production.
Every time you push something to your repo, the xlwings Server web service will be updated automatically.
Deploy for production¶
Render offers everything for a production setup:
Managed Redis database
Allows to run the xlwings Server app and the Socket.IO service in separate containers
TODO: add render blueprint and more detailed instructions.