Building my first Rails app, and am coming to a realization that hosting will be a problem. Right now I'm freelancing full-time and just scraping by, so I don't have a ton of money to put into an app that won't be generating revenue anytime soon.<p>I set up the app on Heroku, and in a matter of ~1-2 weeks, I managed to get charged $75 for using the MemCachier add-on. I would like to be able to cache all my static assets with memcached.<p>I don't expect this app to generate any material traffic for awhile, it's still in development. What are the cheapest options out there?
Go look into EngineYard - they have 500 free hours so you can shutdown your server when you don't expect any users to use your app. Otherwise, go buy yourself a dirt cheap VPS, or even OVH (their cheapest dedicated server plan is $40/month). Or.. just host it yourself. Yep, buy a 8 GB RAM PC quad core, and put in your basement. Sure it will be slow, but since it won't be generating traffic for awhile, who cares?<p>Second, why are you even prematurely optimizing by worrying about caching static assets? Wait until you actually have 100,000 users before doing that. You might even realize you don't even need it when that happens.
<a href="http://myhosting.com/" rel="nofollow">http://myhosting.com/</a> will be much cheaper with a linux vps. I get sub 100ms page loads with a sinatra app and redis hosted on myhosting.
If you have a vps box, you can easily install memcache and set the size on it (64 megs, 128 megs, 512 megs etc).<p>For static assets, are you referring to actual files being served? If that's the case, you don't have to put that in memcache. I would recommend putting it on a third party cdn (e.g. amazon s3).
I run a small (dedicated) hosting environment with a few successfully deployed and running Ruby apps, I could setup a VPS and help with config if you're interested. Roll-your-own VPS usually works out best.