This blog post will focus on the Rack (Ruby) frameworks. Part one will provide a mini-overview, explore the benefits of using Rails and explain how we help you deploy a Rails stack with Cloud 66. In part two, I'll be taking a closer look at some of the additional Rack frameworks supported by Cloud 66 for Rails.'
Ruby on Rails (RoR) or Rails has been around since early 2003 and continues to maintain a lot of interest among the app development community. As we head into version 5, developers continue to embrace the ease, flexibility and pragmatism that comes with such a mature development framework.
Some of the reasons why developers choose RoR include:
- Saves time: Rails offers a set of conventions (over configuration), which speed-up development, making it the perfect choice for rapid application development
- Saves money: most Rails libraries are open source and well maintained
- RubyGems: this package manager makes it simple to develop and distribute software libraries or gems
- Rails community: is active (they frequently contribute to code), helpful and collegiate
- End-to-end: It covers the full stack framework (front and back-end design)
- Continuity: as it follows coding conventions, it's easy to pass a project from one developer to another
- Flexible: the framework makes it easier to accommodate new features and changes
- Job trends: Quartz analytics shows that RoR developers are paid more than developers using other programming languages, and Indeed statistics reveal that RoR developers are nearly 5 times more in demand than Python, and 10 times more so than PHP.
And just simply because it's great for web technologies! The numbers speak for themselves. In his 2015 wrap-up report, Damir Svrtan reported the following Rails stats in his blog post:
- 53 gems released per day
- 363 gem versions released per day
- total number of 2 766 330 304 downloads
But it's not all perfect, and there are definitely some challenges worth considering:
- Ability to Scale (something Cloud 66 can help with!)
- The Need for Speed: while it may not be as fast as Go or Java, it's getting better with each iteration of the Ruby interpreter JRuby
- Not all website hosts support Rails. However, you can gain better control by hosting your application on VPS with a public cloud provider
The reality is, the Rails ecosystem is mature and growth is steady. There's clear evidence that Rails developers actively use the framework, and there really are very few barriers to adoption that can't be easily resolved, especially when teamed with a build and deploy service like Cloud 66.
Cloud 66 for Rails
Easy to use through your choice of CLI or Web UI, Cloud 66 takes away the pain of configuration, monitoring or writing your own builds.
The service allows you to focus on development rather than maintenance, by offering a number of powerful, automated features including managed or unmanaged backups and replications, firewall management, load balancing, scaling, monitoring, failover groups, team access control and much more.
Additional features like LiveLogs were originally created to support Docker stack, but they are transparent and can also be used for Rails stacks.
Cloud 66 gives you the option to deploy your stack on any cloud provider or on your own server, integrating your stack with some of the most popular database technologies out there, including: MySQL, PostgreSQL, Redis and ElasticSearch.
How to build and deploy Cloud 66 for Rails
There are a few quick and easy steps to building and deploying Cloud 66 for Rails, which include a build and deploy process:
Building a Rails Stack
To build the stack, you'll need to have 3 main components in place before getting started:
No. 1: A Cloud 66 account. Creating an account is easy, and you can sign up via your GitHub or Google account credentials or directly with a valid email address
No. 2: A Git repository with your application code
No. 3: Any cloud provider or your own server
Deploying a Rails Stack
Deploying your stack consists of 3 simple steps:
No. 1: Cloud 66 analyzes your application code.
No. 2: You verify the configuration and define the deployment properties to fire up the stack.
No. 3: Cloud 66 provisions the server for you and will notify you when your stack is ready to deploy.
What does it look in practice?
There's no better way to see how Cloud 66 for Rails works in action, than by watching a short demo video. In this video tutorial, watch the steps covered by our resident developer evangelist Daniel van Gils as he takes you through how to deploy your very first Rails Stack with Cloud 66:
To get a sense for how other customers have been using Cloud 66 for Rails, check out some of our customer cases studies to learn more about how to get the most out of the service:
- Learn how Playlist.com moved from Heroku and cut their spend by 90%.
- Check out how WebSummit scale their Rails apps with just one click.
- Find out how Ardan Labs mix and match technologies, using Golang, Docker and Rails for their infrastructure.
Support for Rack based frameworks
Cloud 66 has a long history of association with the Rails community; you've played an important role in helping evolve our company, and we're proud to be a part of that. We have an ongoing commitment to support our Rails product, and are pleased to announce newly added support for additional Ruby/Rack frameworks. To find out more read Part II: ‘Cloud 66 for Rails': exploring new Rack frameworks.