In Python, mocking objects is quite easy but sometimes it can become confusing and frustrating. It needs a bit of practise and when you master it – it’s a very powerful (and a must-have) tool to make your tests better. It all works fine until you try to mock a name attribute then things get a bit
Continue reading How to Mock a name attribute?
Once your WordPress blog is up and running on a GCE it’s time to show this to the world. It would work just as it is now – only on the IP address but it doesn’t look good. I’ll show you how to put in under a (sub)domain in just few step which shouldn’t take
Continue reading WordPress blog under a (sub) domain on Google Compute Engine
With a standard configuration, media files are stored in the same place (same server) as the rest of WordPress files. It’s fine in most cases but with GCE it’s much cheaper to store it externally. You could of course use Amazon S3 – at the moment it’s more popular than Google Storage – but we
Continue reading Google Storage and WordPress. How to configure and store your uploads?
In the previous post of this series we’ve successfully set up a WordPress blog on Google Compute Engine. It’s a very basic solution which would work, but it can be improved. As you know it stores all the files (wp-content/uploads/) and a DB on the same instance. This means that you can easily loose your
Continue reading How to configure WordPress to use CloudSQL?
Few days ago I received an email saying that my trail period was extended from 60 days to 12 months. GCP’s improved free tier is a very nice feature, 60 days was a bit too short to test out all the G goodies. It looked very poor compared to AWS Free Plan which allows to run
Continue reading Google Cloud Platform improves its Free Tier
In this post I’ll try to show you how to easily setup and run your WordPress blog on Google Compute Engine (GCE). What is Google Compute Engine? Following the official website: High-Performance, Scalable VMs Google Compute Engine delivers virtual machines running in Google’s innovative data centers and worldwide fiber network. Compute Engine’s tooling and workflow support enable scaling
Continue reading How to set up a WordPress blog on Google Compute Engine
It has finally happened, I’m blogging (again). Well, I’m writing my first (welcome) post, that’s where I am right now. This time however I take it more seriously and want this blog to contain valuable information. By valuable I mean something practical that I’d use/benefit of while looking up something I struggle with or when I
Continue reading What is my blog about? I’ll try to explain