Serge van den Oever's weblog

Simplifying hosting my weblog - bye bye Azure

Tue Aug 13 2019 • ☕️ 1 min read • you like my writing? Buy me a coffee

As described in my blog post Weblog deployment to a static Microsoft Azure website I initially hosted my weblog on an Azure static website. I had to jump through a lot of hoops to get both https and http working, but in the end I got it all up and running using a DevOps build pipeline, Azure blob storage and a CDN.

But today I found out that my weblog was gone… unreachable. I went to the Azure Portal and what happened: in my expirimentations with Azure on my MSDN subscription I did spend all my Azure money - resulting in the immediate shutdown of ALL my websites.

Of course, if you use services, you should pay for them. But I did not expected to get shutdown completely on my CDN.

So I went another route, way simpler route: use Now for GitHub to do the build and deployment. Pushing to my GitHub repo or creating a pull request is enough to trigger a build and deploy.

I have a script added in my package.json called now-build, and a now.json file in the root of my repo with the following content to do the job:

{
    "version": 2,
    "name": "gatsby",
    "builds": [
        { "src": "package.json", "use": "@now/static-build", "config": {"distDir": "public"} }
    ]
}

This is enough to do the job.

The deployment is done to https://svdoevergithubio.svdoever.now.sh, I’m now waiting for mapping my custom domain https://www.sergevandenoever.nl to this url.

Bye bye Azure - it is sad you failed me, although I know it was my own fault.

Discuss on TwitterEdit on GitHub

This work is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License. You are free to share and adapt this work for non-commercial purposes, provided you give appropriate credit, provide a link to the license, and indicate if changes were made. To view a copy of this license, visit http://creativecommons.org/licenses/by-nc/4.0/.

Serge van den Oever's weblog

Serge van den Oever

Personal blog by Serge van den Oever - als je maar lol hebt...
X: @svdoever
LinkedIn: Serge van den Oever - articles on LinkedIn
GitHub: svdoever

Technology Consultant @ Macaw
2021-2024 Sitecore Technology MVP