Viewing posts tagged programming

How to add Bootstrap to Gatsby

I tried adding Bootstrap 4 to my Gatsby 2.13.50 (CLI: 2.7.14) project today. Based on beginner tutorials I created a layout.js as the base template. It looks like this:

Gotchas with coding on remote machine with VS Code

I started trying out working on code on my remote machine (DigitalOcean Ubuntu droplet) using VS Code on my Windows 10 system a few days ago. Most of the instructions here are ok. A few things might be considered missing though.

How to connect to Postgres in Docker container

If you're learning how to use postgresql with Docker from tutorials online, you might have trouble connecting to postgresql in your container, perhaps especially if you're on Windows. This might help.

Do NOT delete bind mounted volume inside Docker container indiscriminately

I don't think it's been talked about much so I should share why it's a very bad no good terrible horrible idea to delete a mounted directory inside your Docker container without thinking through it. I'm on Windows 10 but I imagine we might make the same shameful mistake on Unix too.

Deploying a Mezzanine site on DigitalOcean

I finished building the first version of this site a couple of weeks back. But, I hadn't a mote of a clue how to deploy a site. So I went a-googlin'. I turned up this article: "How To Set Up Django with Postgres, Nginx, and Gunicorn on Ubuntu 16.04". It looked encouragingly complete. But you know how the story goes. It doesn't simply go. It stumbles all over the place, falls off a few cliffs, drowns, and then you do it again. And again, and again, and again ad infinitum ad naseam.