Live data from Hacker News

Ask HN: Am I crazy to port my Rails app to PHP?

news.ycombinator.com

1–10 of 22 posts

Ask HN: Am I crazy to port my Rails app to PHP?

#1
(a.k.a. I'm cheap when it comes to hosting my hobby sites; I'd like to use Rails, but PHP on shared hosting is much cheaper and less work; suggestions?)

I've recently been working on a small, "hobby" web app - http://yoyocase.net. It's been a chance for me to scratch an itch (I want to show off my collection) as well as to learn Rails.

Finding hosting for my app has been challenging, though. I don't plan on monetizing this, so I really can't justify "expensive" web hosting. Nor do I want to go with a VPS - I don't want to play sysadmin in my spare time.

So, I've also been porting my code to PHP (not raw; CodeIgniter!), and plan to put it on my shared hosting account. Am I shooting myself in the foot?

Alternatively, do any of you know where I could find relatively cheap "shared" Rails hosting - a place where I wouldn't have to setup my own virtual server(s), keep all the software/packages up to date, etc.?

Re: Ask HN: Am I crazy to port my Rails app to PHP?

#5
About 18 months ago I came to the realization that Rails just wasn't required for the projects I was using.

I jumped on the Rails band wagon early and loved all the syntatic sugar that comes from Ruby, and I'd never really developed with an MVC pattern.

Like you, I gradually realized I was spending more time as a sysadmin or bashing my clients' commodity hosting into submission than actually building sites. I felt like I was cheating when I finally went back to PHP (CodeIgniter, also).

It wasn't til I rsync'd the PHP site I was working on to the prod server and saw it just work that I started feeling a bit better. Since then, I've been totally happy using simple but solid PHP frameworks.

So, I think you're on the right track. Admittedly, I'm a little out of date on the state of Rails deployment. But if you're productive in PHP, go for it.

Re: Ask HN: Am I crazy to port my Rails app to PHP?

#6
post #3

http://www.heroku.com

I started hosting a project on heroku recently and it is simply fantastic. They offer a free hosting with 5 MB of DB storage and they just changed their pricing scheme and offer a plan with 20Gb of DB storage for only $15/month. Definitely worth checking out.

http://blog.heroku.com/archives/2010/1/21/pricing_changes_pa...

Re: Ask HN: Am I crazy to port my Rails app to PHP?

#7
Shameless plug: http://www.asmallorange.com/hosting/shared/ We host Rails with mod_rails/Passenger, so it'll run with minimal fuss. Works really great so far.

But honestly, it's whatever language works best for you. If you've got a good framework in front of it that's helping to keep you from making dumb mistakes, then that's all that really matters.

Re: Ask HN: Am I crazy to port my Rails app to PHP?

#8

About 18 months ago I came to the realization that Rails just wasn't required for the projects I was using. I jumped on the Rails band wagon early and loved all the syntatic sugar that comes from Ruby, and I'd never really developed with an MVC pattern. Like you, I gradually realized I was spending more time as a sysadmin or bashing my clients' commodity hosting into submission than actually building sites. I felt li…

What pattern do you develop with?

Re: Ask HN: Am I crazy to port my Rails app to PHP?

#10

About 18 months ago I came to the realization that Rails just wasn't required for the projects I was using. I jumped on the Rails band wagon early and loved all the syntatic sugar that comes from Ruby, and I'd never really developed with an MVC pattern. Like you, I gradually realized I was spending more time as a sysadmin or bashing my clients' commodity hosting into submission than actually building sites. I felt li…

What pattern do you develop with?

Not sure I understand the question... I use CodeIgniter whenever we're building a bespoke site. It uses a Model-View-Controller pattern, like Rails. Is that what you were asking?
Post reply on HN