SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Newbie of RoR

  1. #1
    SitePoint Member
    Join Date
    May 2007
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Newbie of RoR

    Hi all,

    I am alex and a newbie of Ruby on Rails. I am using instant rails 1.85 at home pc (window). Could you please kindly tell me how to put my home RoR files to the web server? I have searched lots time on the internet. However, no suitable articles could tell me how exactly i can do. I would be very appreciated it if you could please help me to solve this "silly" questions.

    Thanks, all

  2. #2
    SitePoint Wizard chris_fuel's Avatar
    Join Date
    May 2006
    Location
    Ventura, CA
    Posts
    2,750
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    With ruby on rails, if you have any files that aren't created by some form of ruby programming, they'll go in a directory called "public" in your project folder.

    Remember though, if you're throwing a lot of non-document/media files in there, Ruby on Rails may not be the best for the task, and just a standard webserver would be better suited. The strength of Ruby On Rails is, in my opinion, the ability to use Ruby in a way to easily created dynamic pages with cool features.

  3. #3
    SitePoint Guru
    Join Date
    Aug 2005
    Posts
    986
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you want to put your RoR application on a webserver connected to the internet, or do you want to run the application on your local machine? The latter is easy: just run the webserver included in your Rails application by typing "ruby script/server" in a console window in your project directory. You can open a console window by clicking 'start', click 'run', type "cmd", click 'ok'. Now you have a console window, but it is not in your project directory. You have to type "cd C:/the/path/to/your/project" [enter] first. Then you type "ruby script/server" [enter] and point your browser at 'http://localhost:3000/'. This is how you'd do it on windows with a regular Ruby/Rails installation. I'm not sure if there's an easier way with instantrails...


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
  •