a Digital Ocean Alternative

I have always recommended Digital Ocean to host Ruby on Rails.

But I have recently come to know about Vexxhost, a Canadian host which has partnered with Cloud66. They offer same low rates of Digital Ocean.

Here are Vexxhost pricing as per January 2014

Image

And here is the pricing of Digital Ocean as per same date

Image

I have not tried Vexxhost yet, but heard and read good reviews about. Their servers are currently in Canada only, while Digital Ocean has servers in NY, Amsterdam and Singapore.

So if for some reason you are looking for an alternative to Digital Ocean┬áhosting and don’t want to pay more, Vexxhost seems to be your current best bet.

Advertisements

Cloud66 Deployment Failure When Upgrading to Rails 4

As you may know if you follow my blog. I develop on a Windows machine (and everyone hates me for that).

As I don’t know much about web server, vps, clouds, Capistrano..etc I decided to use cloud66.com to make deployment of code hosted on githib easier.

After upgrading to Rails 4, app worked on my local machine, but not on my production environment (digital ocean ) managed by cloud66

I received errors related to Capistrano and Psych which I know nothing about

/usr/local/lib/ruby/1.9.1/psych.rb:154:in `parse‘: (): couldn’t parse YAML at line 0 column 5 (Psych::SyntaxError)
from /usr/local/lib/ruby/1.9.1/psych.rb:154:in `parse_stream’
from /usr/local/lib/ruby/1.9.1/psych.rb:125:in `parse’
from /usr/local/lib/ruby/1.9.1/psych.rb:112:in `load’
from
/var/deploy/cloud66/shared/bundle/ruby/1.9.1/gems/capistrano-2.15.4/lib/capistrano/recipes/deploy/assets.rb:26:in
`parse_manifest’
from
/var/deploy/cloud66/shared/bundle/ruby/1.9.1/gems/capistrano-2.15.4/lib/capistrano/configuration/namespaces.rb:191:in
`method_missing’
from
/var/deploy/cloud66/shared/bundle/ruby/1.9.1/gems/capistrano-2.15.4/lib/capistrano/configuration/namespaces.rb:191:in
`method_missing’

So I have contacted cloud66 team, who advised it is an asset pipeline issue caused by upgrading to Rails 4. And they suggested to delete the manifest cache files (/var/deploy/tafqit-amesterdam/web_head/shared/assets/manifest*).

I logged in to my cloud66 dashboard where I have web console access to my server, I navigated in directories and deleted files as instructed and deployment went fine, now I have my site upgraded to Rails 4! What a joy!.

This was my first time where I had to navigate files on Ubuntu, but found out to be easy, simillar to DOS.

all Ubuntu console commands can be found here

Abandoned mine: view down rails (4 of 6)

Good bye old Rails 3

Deploying Ruby on Rails Applications for Beginners

You always see on Rails forums, rails newbies asking about their best option for hosting their small web app.

In the world of php, deploying is a much simpler process with choices among thousands of good cheap hosts.

When it comes to Rails less options are available, although significantly increasing these days, and process is more complicated.

The biggest issue arises when you are like me a Windows user and developed your app on your Windows machine. Of course, the first thing every other developer may tell you is to move to Linux (Ubuntu is by far the most popular).

Actually moving to Linux for Rails developers may be the right decision which I still have not taken. And this is why I made this blog.

( As you may have already noticed I usually target new rails developers on Windows )

So the most recommended host for beginners, is Heroku, extremely to use and usually it is easy to move your site from your local Windows machine to their servers. The problem with Heroku is their prices. They have a free basic account, but does not offer much, if you get some traffic, soon you will have to upgrade and rate will jump drastically.

After some research I found that my best bet is to use Digital Ocean

Their basic account is for $5 a month, no other Rails host can beat that, trust me.

Now after registering with Digital Ocean, I found it a bit complicated to move my local Rails App to their cloud, so I was introduced to Cloud 66

They say it very clearly: Cloud 66 makes deploying and running of Ruby on Rails apps simple. And it is so true. All you need is your Digital Ocean account, and your app on github. Cloud66 will analyze your code and create the right environment on Digital Ocean.