How to use latest Ruby versions on anynines

1000px-Ruby_logo.svgAs Ruby versions get rolled out pretty frequently we need to be able to reflect this in our applications.

Since the current Heroku buildpack version only supports ruby versions up to 2.1.2 using the default environment settings we need to use the STACK environment variable to enable Ruby versions >= 2.1.3 when pushing applications to anynines. As Heroku introduced support for stacks we need to specify the “cedar” stack to enable current ruby version support for our application.  (more…)

How to deploy your Django app to anynines

django deployment on anyninesBefore we can deploy a Python app to anynines we have to take care of some preparations. In this post I’d like to demonstrate the Python application deployment prerequisites and process using the example of a simple Django application. The demo application’s source code can be found on Github.

Prerequisites

Configure environment

At first we have to ensure that our desired Python version is specified in the runtime.txt file. In addition we need to specify our dependencies within the requirements.txt file.
(more…)