Viewing posts tagged programming

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.

Milestone: deployed a site

I deployed this site today. Something of a milestone. I dropped Wagtail and Puput, and went with Mezzanine because, as I've found out, the larger and more stable a community, the more secure and fully featured the package. Security was a big concern for me, and I'm really glad Mezzanine deals with it so decently.