I just went thru the hivelogic article to get everything installed on my
new mac. I then decided to run thru the ADC Rails article. In the
article it says to run ‘script/server’ which will start lighttpd if
installed or webrick if not. When I do it, I get webrick not lighttpd. I
followed the hivelogic article word for word and everything else seems
to be working fine. Is there something I need to do to the
lighttpd.config file to make this work? The ADC article makes it sound
like it should just work.
Instead of “mate ~/.bash_login”, type “sudo pico
~/.bash_login” (your file will show empty here, meaning the PATH
wasn’t saved correctly last time around)
You might need to chmod 777 the .bash_login file, I’m not sure
anymore.
Open a new Terminal window and query “ruby --version” (it should
show “ruby 1.8.4 (2005-12-24) [powerpc-darwin8.5.0]”)
Make a new rails application somewhere with “rails myappname”
cd myappname
script/server
It should now read:
=> Booting lighttpd (use ‘script/server webrick’ to force WEBrick)
=> Rails application started on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)
Thanks Peter, but that wasn’t it. I opened .bash_login with pico and
both lines are there and typed correctly.
I did a control-x and tried script/server but it still started webrick.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.