Innovate anywhere, anytime withruncode.io Your cloud-based dev studio.

MicroPyramidBlog

Explore a blog dedicated to a wide spectrum of topics including Django, Python, Machine Learning, Salesforce, Angular, React, Flutter, Svelte, LINUX, and Amazon Web Services.

Automate Django Deployments with Fabfile

Fabric is a Python library and command-line tool with the ability to execute commands on a remote server. It is designed to use SSH to execute system administration and deployment tasks on one or more remote machines.

Server Management Read Full Post

Ansible Galaxy Introduction

Ansible Galaxy is the hub of ansible scripts contributed by users. To follow this article its important that you know about ansible. We have a simple, easy to follow blog about ansible scripting here(https://micropyramid.com/blog/how-to-deploy-django-with-uwsgi-and-nginx-using-ansible-play-book/).

Server Management Read Full Post

Django Hosting on Nginx with Uwsgi for High Performance

Quick guide to host django application using uwsgi and nginx which offers better resource utilization and performance .

Server Management Read Full Post

Django on GAE (Google App Engine)

Google App Engine (often referred to as GAE or simply App Engine) is a platform as a service (PaaS) cloud computing platform for developing and hosting web applications in Google-managed data centers. Applications are sandboxed and run across multiple servers.App Engine offers automatic scaling for web applications—as the number of requests increases for an application, App Engine automatically allocates more resources for the web application to handle the additional demand.

Server Management Read Full Post

Daemonizing any Command with SUPERVISOR

Daemonizing a command means to make it run as a background process.

so when we have a command that we want to daemonize there are many ways to do it, most common methods are:

  1. using upstart
    2. adding it to /etc/rc.local
    3. creating a script in /etc/init.d and adding them to runlevel folders manually (i.e. incase you want to start, stop a command)
Server Management Read Full Post

Configuring WordPress Blog as Sub-Directory Alongside Django in Nginx

Using regular expressions within Nginx we can bind urls to particular application servers, below we will configure wordpress blog and django site to be deployed on same domain name with each having their respective application servers i.e. ‘fastcgi’ for wordpress and ‘uwsgi’ for django.

Server Management Read Full Post

How to Do Page Redirections with Nginx

Here we learn how to redirect a www to non-www or vice-versa also we see how to redirect pages. We will see differences between 301 and 302 redirection.

Server Management Read Full Post

Letsencrypt Wildcard - Setup Wildcard Subdomain Using Letsencrypt and Certbot

To get wildcard supported certificates, we need to pass the challenge which requires adding TXT records in your dns records.
To get certificates for single domains, there is no need to modify dns records. Check this link https://micropyramid.com/blog/configure-ssl-with-letsencrypt-and-nginx/ for more info.

Server Management Read Full Post

How to Backup and Restore Mysql, Postgresql and Mongodb Databases

Data loss can happen when we accidentally delete the files, or when server crashes or system fails, or when we applied migrations to the data that didn't work so we don't get previous data with the schema. In the production environment, it's mandatory to do database backup when we do changes in the code.

Server Management Read Full Post

Postgresql Installation and Management Basics

PostgreSQL or simply postgres is the most advanced, SQL-compliant and open-source objective-RDBMS. In This Article, you will learn how to Install, Connect and Manage a postgres database.

Server Management Read Full Post