Posts tagged hosting

Stand up a Heroku server with Ember

0

I recently started a pet project - some kind of interaction with the facebook API (no spoilers) – built in Ember with a Mongo data store and Rails back end.  There will be more details on that later, but as of now, I would like to complete it a little bit more first.  One thing was clear though, while I was building it, I just wanted to use Heroku to stand it up and get a standalone app running.

After the long and tedious process of bringing my computer up to date – Mid 2010 MBP, been using far-more-up-to-date work MBPs over the years, so this one kinda fell behind – I was ready to stand up a Heroku server and start working… and that was when I discovered that Heroku did not have a “Getting started with Ember” repo.  No big deal, I thought, it shouldn’t be all that hard to get up and running, they have NodeJS after all.  Turns out that it wasn’t all that easy.

As it turns out, Heroku really, really does not like EmberJS.  In the future, that very well may change, but as of right now, it was a no go.  After a whole bunch of internet sleuthing turned up no results, I just started playing around with it to see what it would accept – “heroku run bash” is a godsend.

Long story short, I ended up building a basic Ember app that Heroku didn’t hate, finding a nice mesh between a default NodeJS install and a Heroku setup, I found the “special sauce” of config settings that would result in a working application, and packaged it up in the repo embedded below.

I will revisit this at some point in the near future, as I am absolutely sure there is a way to do this without including the eleventy-billion bower/node component files, making this repo far more light-weight, but every attempt I’ve made so far resulted in Heroku crashing.

The worst thing about all this: about half-way through, I realized it wouldn’t be a good solution for my project.  Sheer curiosity and determination kept me going.  After I was finished, I figured I would share it publicly, making it easier for the next poor soul to try getting Ember working with Heroku.

Feel free to leave a comment below, or within Github, if you have any ideas on ways to improve on this.

https://github.com/jcorradino/ember-js-getting-started

What Hosting Should I Use?

0

Rackspace Cloud, the current host of this site.

Throughout the course of my career, I have worked with several hosting providers. Some great, some ok, and some absolutely terrible. Hopefully reading through this will give you what you need to navigate the maze of untruths and half truths that is the hosting industry. The most important question you have to ask yourself is this: what can I afford and what kind of traffic am I going to get? This is typically a very easy question to answer. Even if you count only the great ones, there are a lot of hosts out there just clamoring for your business. This decision, albeit a rather hard one, can become a little bit easier with the second question: what can I afford? Given that, lets run through a list of hosts I have worked with in the past and I will give you a brief rundown of what makes them good or bad.

GoDaddy

GoDaddy is arguably the biggest name in web hosting, and in a lot of circles, it’s name is nearly as recognizable as Google or Ebay. I find this to be incredibly sad, as their hosting service is actually several shades of terrible. The only thing I will honestly say they are good for is buying that special .com, as they are probably the easiest domain registrar on the internet, their hosting, in my opinion, just doesn’t cut it when compared to the thousands of other hosting providers out there. You are safe if you only want to put up a small, simple site with only HTML, CSS, and JavaScript, but anything else and you are in for a world of pain and frustration.

Host Gater

Don’t let their silly name and poorly designed site fool you, this is a major contender in this space. In my opinion, this is probably the strongest hosting company when it comes to smaller sites. Not only that, but this is probably the most used hosting company on the net for small sites, and with good reason: their prices are good and they are extremely well trusted. If you are looking for a host for your small site, then this is a good option. If you are looking for larger hosting packages, they have them, but I cannot give an informed decision as I have never used them for this purpose.

Blue Host / Host Monster

No host list would be complete without mentioning BlueHost and HostMonster, both of which are the same company so will be treated as one item. BlueHost probably has the best uptime of any small-server host I have ever worked with, and their customer service is amazing. For $6.95 a month, you will receive “unlimited” everything and a free domain. HostMonster is a little less expensive for pretty much the same thing, but their uptime is not as great, I would recommend going with BlueHost if I had to pick from these two. All this being said, there have been rumors as of late that have pointed towards them both throttling, or limiting the amount of traffic you can use at any given time. This is probably fine if you are looking to just get your presence out there, but if you are expecting any kind of traffic this is very troublesome. My recommendation with this host is probably to beware, if the rumors are true, this company will be a terrible choice.

Fatcow

FatCow was my previous host for a good long time, at least over a year, and I had very few problems with them. Their technical support was exemplary, any ticket I sent to them received a timely response and more often than not a solution, and their servers almost never went down. And the one time it went “down” was when their ftp client stalled and I could not connect through FTP protocol. Everything, again, is “unlimited,” and the price is outstanding, sitting just under $4 a month. The best part about this host, it is green. This means that it’s sitting in a data center powered by green energy. Not only can you throw your website online, but you can feel good about it by saving the environment just a little bit.

And then there was enterprise

As I see it, the hosting landscape for enterprise customers are pretty similar, with two major players that could cover the needs of just about any business at the top.

For most medium sized businesses and even some large businesses, you can probably get what you need by going with a virtual dedicated server. This means that you will be technically sharing a server with one or more other tenets, but you are given your own little sandbox to play around in, and as far as you are concerned, they don’t even exist. If, however, you are looking for raw power, you would want to go the dedicated route. This means that a server sitting in a center somewhere in the country is all yours, subject to your very whim (from a technological point of view, anyway). Both options will get you root access to the box (read: the “god user” that has the power to do anything), and either a empty box where you pick an operating system and start fresh, or a box configured with some form of control panel making it easy to just slap a site on there and go.

Media Temple

With a client list full of names such as ABC, Starbucks, and Volkswagen, you can be sure that your business, no matter the traffic, will be just fine with them. If you were a medium sized business and you do not receive all to many hits, maybe no more than several hundred a day, you would be just fine with their (gs) hosting plan, which will run you $20 a month and get you 100GB of storage and 1TB of network transfer.

WAIT A SECOND! You said that those above are unlimited, but this one isn’t… AND it costs more, whats up with that?

Well, hosting companies like to quote “unlimited” bandwidth and storage, but they will never provide it. Once you get to several gigabytes of data transfer or hard drive space they will cut you off very quickly. After all, what is the benefit of having a user that pays $4 a month and costs $5?

If, however, you are looking for a little more power, you can opt for one of their more serious hosting plans: a (dv) dedicated virtual server with a control panel software solution, or a (cx) dedicated virtual server with nothing but your beloved ssh connection to setup. As I am more of a hands on kind of developer when it comes to server architecture, I prefer their (cx) servers, but if you are not, and don’t have the time or manpower to configure the box, I would recommend sticking with the (dv). This is when you start seeing real prices for hosting, as the (dv) will cost you $50 a month for 20GB of storage, 512MB of ram, and 1TB of bandwidth; $100 a month for 40GB of storage, 1GB of ram, and 1.5TB of bandwidth; or $150 a month for 60GB of storage, 2GB of ram, and 2TB of bandwidth. The (cx) servers can cost quite a bit more, but they get a lot more powerful than the (dv) servers. Running you anywhere from $30 a month for 20GB of space, 512MB of ram, and 350GB of bandwidth to $2000 a month for 1TB, 32GB of ram, and 3TB of bandwidth.

Rackspace Cloud

There is no real need to post a price for this host, as everything they offer is completely customizable. Starting at $11 a month, you can get a virtual server set up and do whatever you want with it. You want to host a website, go ahead; you want to host a corporate mail server, go for it; you want to set up a counter-strike server for those long days at work when the boss isn’t around, well, that probably isn’t the best use of company resources, but be my guest.

The very best part about Rackspace Cloud is their ability to completely resize a server on the fly. As a matter of fact, I actually resized my account during the typing of this blog post and didnt even miss a beat, only took a couple minutes. With Rackspace Cloud, you can go from 256MB of ram for $11 a month to 15GB of ram for a little under $800 a month. If you are looking for something bigger, they can help you out with that, as this is being built from a cloud architecture, their limit is the sum of the whole. The biggest downside with this host is that you have to understand how to work with servers in order to do anything, since you receive a box with anything installed but an operating system. Securing it, setting up a LAMP server, and setting up FTP are all up to you.

Happy coding,

Jason

Go to Top