SitePoint Sponsor

User Tag List

Results 1 to 13 of 13

Hybrid View

  1. #1
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ruby, Apachie and... WinXP?

    Hi all,

    Anyone know of a tutorial for setting up Ruby on a winXP machine running Apachie? For PHP work, I've been using XAMPP, so have skipped the whole "setting up Apachie" thing.

    I have Ruby working from the command line, and Apachie working through XAMPP. Just looking for pointers on how to get them to talk to eachother. (This is just for local development, the production server is already set up with Ruby)

    Thanks,
    Douglas
    Hello World

  2. #2
    SitePoint Enthusiast
    Join Date
    Jun 2004
    Location
    Stillwater, MN
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This looks like it could help you out:
    http://www.loudthinking.com/arc/000328.html

    Have you tried Rails yet, by the way?

  3. #3
    Resident Java Hater
    Join Date
    Jul 2004
    Location
    Gerodieville Central, UK
    Posts
    446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Though this doesn't probably apply now to you directly Doug as it's year old, I thought I'd reply for the benefit of those who don't know (and because I didn't realise this was a 2004 post tile I was about to click post)

    I found Apache and Rails a nightmare. Obviously, now I've used Lightty, I wouldn't go back to Apache unless I wanted to stab myself in the eyes with a fork. I think the way forward is to try and get Lightty running under Cygwin.

    On windows, I stick to Webbrick, though I must say developing on Windows is a real pain as it's so slow not having C based MySQL bindings, and being stuck to Webrick if you don't have Lighty.

  4. #4
    SitePoint Addict SRTech's Avatar
    Join Date
    Mar 2005
    Posts
    224
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was able to get it running using this tutorial:
    http://electricvisions.com/rails.html

    Would recommend though you stay with webrick while developing.

  5. #5
    SitePoint Zealot
    Join Date
    Jul 2004
    Location
    Oklahoma
    Posts
    119
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DougBTX
    Hi all,

    Anyone know of a tutorial for setting up Ruby on a winXP machine running Apachie? For PHP work, I've been using XAMPP, so have skipped the whole "setting up Apachie" thing.

    I have Ruby working from the command line, and Apachie working through XAMPP. Just looking for pointers on how to get them to talk to eachother. (This is just for local development, the production server is already set up with Ruby)

    Thanks,
    Douglas
    http://instantrails.rubyforge.org is exactly what you're looking for. It's the equivelant of XAMPP for Ruby/Rails (And has PHP Mysql and everything already with it, it's an extension and some rework of the EasyPHP code base).

  6. #6
    SitePoint Zealot
    Join Date
    Dec 2004
    Location
    virginia
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A good tutorial would help me out alot because I still can't get webrick to work on XP.

  7. #7
    SitePoint Wizard DougBTX's Avatar
    Join Date
    Nov 2001
    Location
    Bath, UK
    Posts
    2,498
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by joflow
    A good tutorial would help me out alot because I still can't get webrick to work on XP.
    There isn't much tutorial to write if you know how to use a command prompt. Just run "ruby script/server" when you are inside the rails project folder (where you type "generate controller" and so on) then open a web browser at http://localhost:3000/ (by default, it willtell you which port to use if it isn't 3000.)

    Douglas
    Hello World

  8. #8
    Resident Java Hater
    Join Date
    Jul 2004
    Location
    Gerodieville Central, UK
    Posts
    446
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DougBTX
    There isn't much tutorial to write if you know how to use a command prompt. Just run "ruby script/server" when you are inside the rails project folder (where you type "generate controller" and so on) then open a web browser at http://localhost:3000/ (by default, it willtell you which port to use if it isn't 3000.)

    Douglas
    Yea, that's not too bad, but the lighttpd / mysql / ruby setup on linux is not clear to those who don't know Linux very well, and don't want to faff about trying to dig this info up. I know it's not hard, and the info is out there. It's just patchy if you're new I think

  9. #9
    SitePoint Zealot
    Join Date
    Dec 2004
    Location
    virginia
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DougBTX
    There isn't much tutorial to write if you know how to use a command prompt. Just run "ruby script/server" when you are inside the rails project folder (where you type "generate controller" and so on) then open a web browser at http://localhost:3000/ (by default, it willtell you which port to use if it isn't 3000.)

    Douglas
    Yeah, I can get that far. Webrick just doesn't work. The "You put Ruby on Rails" page doesn't display.

  10. #10
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by joflow
    Yeah, I can get that far. Webrick just doesn't work. The "You put Ruby on Rails" page doesn't display.
    Are you keeping the console window open? What's the output in the console as you try to load http://localhost:3000/ in your browser?

  11. #11
    SitePoint Zealot bronze trophy
    Join Date
    Jun 2004
    Location
    Stockholm, Sweden
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What is the output of the console window when you run ruby script/server?
    If there is a way to overcome the suffering, there is no need to worry; if there is no way to overcome the suffering, there is no point to worry.
    - Shantideva

  12. #12
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What happens if you follow these steps:

    1. create a directory 'dev' in c:, that is C:\dev
    2. Open a console window
    3. Type "cd C:\dev", and then [enter]
    4. Type "rails test" [enter]
    5. Type "cd test" [enter]
    6. Type "ruby script/server" [enter]
    7. Open your browser, and type "localhost:3000" [enter] in the address bar

    What do you see in your browser, and what in your console?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •