-
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 :)
-
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.
-
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...