Posts

Showing posts from 2015

Setting up CRON via a python script without using external library

What is the best tool in computer that can do your job automatically and is something which otherwise, if not there would involve manual intervention? Life around computer is increasingly getting more complex with our lifestyle demanding more of automated work. Out of philosphy let's face it, we need tools that we can set up for doing tasks for us, run scripts for us whenever we want. When it comes to schedulers, it's like an alarm clock or a timer which goes of for whatever time we set it and then ensure we do our tasks. Now, in the world of Linux, we know this schedulers at system level as Cron. Cron is a system daemon which is used to execute desrired tasks (in the background) at specific designated time. It is used to schedule jobs (commands or shell scripts) to run periodically at fixed times, dates, or intervals. It typically automates system maintenance or administration Now, thinking of cron, it's a name we use, when we have to schedule a task. Now, I am

NGinx + Gunicorn + Flask-SocketIO based deployment.

It's been a long time I wrote a blog post!. Recently I realized I should at least write about my unwarranted account of solving problems which were hard, to just get some information online. So this post provides the details we need to know how to deploy the Flask-SocketIO app using Gunicorn and NGinx. Here are the links for NGinx , it is a web server with a focus on high concurrency, performance and low memory usage. Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX and Flask-SocketIO  gives Flask applications access to low latency bi-directional communications between the clients and the server. The client-side application can use the SocketIO Javascript library or any compatible client to establish a permanent connection to the server.  Version's I used: Nginx : 1.6.0 (Websocket support in Nginx was introduced in version 1.4 and above) Gunicorn : 17.5 Flask-SocketIO : 0.6.0 If you go through the document's of the tools, you will com