Buy Me a Coffee

[DecapCMS/NetlifyCMS] Invalid String Length Error

The Problem While using DecapCMS in a local environment, you might encounter the following error: error: Error handling {"branch":"feat/add-new-post","action":"getMedia","params":{"branch":"feat/add-new-post","mediaFolder":"static/images"}}: Invalid string length Context: The repository is built with Hugo. It is approximately 600MB, with a static/images folder containing about 5000 images totaling more than 500MB. This error doesn’t appear when DecapCMS is run on a production environment like Netlify, but locally it occurs when attempting to view certain pages. Running DecapCMS Locally To run DecapCMS locally, you use: ...

[DroneCI] How to Configure Pipeline to Build and Push Docker Image

Sometimes we need to build Dockerfile to the docker image and push it to registry in CI pipeline. For instance, my development environment is windows/amd64, but my VPS is linux/arm64. At the end, I want to host the service in my VPS. Thus, it will be easy to build the docker image inside the CI pipeline. In this post, I will show how to configure the pipeline to build and push docker image in DroneCI, which is a self-service Continuous Integration platform for busy development teams. ...

DigitalOcean Referral Badge
Sign up to get $200, 60-day account credit !