Hi Folks:

I've been impressed with the look and feel of Typo (i'd heard of it some time 
ago, but mistakenly believed 
it was typo3-related). It sure seems like a nice web-app.

Being a programming fool, I'd been intending to delve into ruby/rails for 
some time now and this seems like the impetus to get started. So i went 
through the install process on my dev box (Egdy), repleat with warts and all.
First following the Typo instructions, then going over to 
http://www.typosphere.org/
when things didnt go as planned, then to rubyforge when gems became problematic.

(FWIW, I really like ubuntu as a (laptop) workstation, but not too much as a 
development env)
I'd be happy to share the process I followed to get everything up and running 
using apt, but
suffice it to say that Typo finally installed OK, with only minor inconvenience:
rake aborted!
no such file to load -- openssl
RION:
 apt-get install libopenssl-ruby


and is running on http://localhost:4714/ OK.
root     30149     1  0 17:01 ?        00:00:03 /usr/bin/ruby1.8 
/usr/bin/mongrel_rails start /Pub/web_apps/Com_Cms/Typo/install_dir -d false -e 
production -P /Pub/web_apps/Com_Cms/Typo/install_dir/tmp/pid.txt -p 4714

But this is w/mongrel, and as my intention is to get typo migrated over to my 
colo'd server
(Centos5/yum), and to be able to run typo thru apache with the other sites it 
serves.

From the Notes:  to get this working w/apache we run typo as usual then in the 
vhost (as per the doc):
# This is the important part--it sets up proxying.
  ProxyRequests Off
  <Proxy *>
    Order deny,allow
    Allow from all
  </Proxy>

  ProxyPass / http://localhost:4155/
  ProxyPassReverse / http://localhost:4155/
  ProxyPreserveHost On
</VirtualHost>
RION: or 4174 - so above filters typo thru mongrel to apache?

So, my Typo ? is this:

 Is there another way that you are aware of that would run ruby apps akin to 
perl ones? Meaning using mod_ruby like mod_perl instead of mod_fcgi?


I installed mod_ruby cuz i  would like to run .rb or .rhtml files as cgi's
Lastly, a basic ruby ?
Altho following the guide as laid out in: 
At the Forge - Getting Started with Ruby
July 28th, 2005 by Reuven M. Lerner in

I am unable to get a simple 'hello world' .rb file to execute in apache as a 
cgi.
#!/usr/bin/env ruby
print "Content-type: text/plain\n\n"
print "Hello, world\n"

 I tried
      AddHandler cgi-script .rb .rhtml,  it didnt work; i got text.

Now, this was not using WEBrick, but apache, after i installed mod_ruby
Any tips/pointers would be highly appreciated.

TIA for the assist.


Rion
-- 
                                     email: rion_at_dluz.com
                                     web: http://dluz.com/Rion/
                                     AIM/Jabber/Google: riondluz
                                     Phone: 802.644.2255
                                     http://www.linkedin.com/pub/6/126/769

 
thank God for secular humanism!

Attachment: pgpcfOcdv7ruB.pgp
Description: PGP signature

Reply via email to