Hi all,
Just a couple things I'm discovering as I tinker with RoR usage in the phase 2 goodies in cPanel 11. I'm no Rails expert, but I'm finding my way around this stuff and figured I'd share what I'm seeing in Rails/cPanel implementation as it stands today:
Well, that's the main stuff I'm thinking of for now. I'll post more if I uncover other secrets. After all, this is what I'd see as a "work in progress" since this cPanel screen really must include the ability to customize the Mongrel process -- including choosing your port and the environment.
Oh yeah -- I would love to be able to start up a few Mongrel processes on a single app, say three of them for a small site?? Please??
(Of course all of this is not discussing the fact that a more serious Rails deployment should really be using Apache 2.2 + Mongrel + mod_proxy + proxy_balancer or such... that's another research topic that's still forthcoming.)
BTW -- I'm sure my very lacking knowledge of Rails is shielding me from a ton of great solutions to these types of things, but hey... I'm trying to contribute for a change, instead of leeching all the time.
These issues are likely to be of interest to Rails Noobs, I'd think.
Anyway, good luck and I hope this helps!
--Hoza
Just a couple things I'm discovering as I tinker with RoR usage in the phase 2 goodies in cPanel 11. I'm no Rails expert, but I'm finding my way around this stuff and figured I'd share what I'm seeing in Rails/cPanel implementation as it stands today:
- I had a Rails app already on an account on my server (haven't tried the "Create Ruby on Rails Application" feature yet) and cPanel's Rails goodies saw it... neat. I'm able to start a Mongrel process running on that app using cPanel, which rocks. However, here are the quirks:
- Using the "Run" Action on the app's control section apparently just loads a default Mongrel process without any extra switches/settings on port 12001 (in this test case). Because of this, it's running the app in "development" mode, which you (and I) likely won't want for long. For me, this meant that my Rails app hit 500 errors because I don't have a Development database on my server (that's sitting on my dev box) so it couldn't find it. Granted, you might be developing your app on the server, which means you may have a dev db. If you do, you'll have done all the rake-ing and migrate-ing by now and you're not interested in my drivel.
- For me, I run a command more like this in SSH from the root dir of the Rails app (you should know this if you're making RoR apps, eh?):
Code:mongrel_rails start -d -p 12001 -e production
- Because I can't tag on the extra spiff I need to the command in cPanel -- I'm guessing it's just running "mongrel_rails start" in the app directory -- I'm also unable to use the "App Status" or "Load on Boot" features yet... bugger. I'm sure that all we need to allow this stuff to work great is to add a few options to this cPanel screen, such as a radio button selector for "development", "production" or "test", as defaults (or maybe even scanning the app's "database.yml" file and displaying the names of each section?? Yay?!?).
- Using the "Run" Action on the app's control section apparently just loads a default Mongrel process without any extra switches/settings on port 12001 (in this test case). Because of this, it's running the app in "development" mode, which you (and I) likely won't want for long. For me, this meant that my Rails app hit 500 errors because I don't have a Development database on my server (that's sitting on my dev box) so it couldn't find it. Granted, you might be developing your app on the server, which means you may have a dev db. If you do, you'll have done all the rake-ing and migrate-ing by now and you're not interested in my drivel.
Well, that's the main stuff I'm thinking of for now. I'll post more if I uncover other secrets. After all, this is what I'd see as a "work in progress" since this cPanel screen really must include the ability to customize the Mongrel process -- including choosing your port and the environment.
Oh yeah -- I would love to be able to start up a few Mongrel processes on a single app, say three of them for a small site?? Please??
(Of course all of this is not discussing the fact that a more serious Rails deployment should really be using Apache 2.2 + Mongrel + mod_proxy + proxy_balancer or such... that's another research topic that's still forthcoming.)
BTW -- I'm sure my very lacking knowledge of Rails is shielding me from a ton of great solutions to these types of things, but hey... I'm trying to contribute for a change, instead of leeching all the time.
Anyway, good luck and I hope this helps!
--Hoza