Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

am new to ruby. tell me one thing.
i can view my project on browser when i write "ruby
script/server". otherwise i cant view my project on localhost.

what i have to do to view my project always on browser?
pls help

Answer Posted / manish nautiyal

ruby script/server -d

with -d your server will run always. This is for only your localhost machine. When you deploy your project on live server than you have to use apache to run it.

And to see it in the browser you have to type

http://localhost:3000/

3000 port is by default port for ruby on rails you can change the port by using -p

ruby script/server -d -p 3001

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can the filter methods in ruby on rails be protected?

805


How you run your Rails Application without creating database ?

911


how can you declare a block in Ruby?

950


How are blocks created?

911


What are class libraries?

856


How do rails implement ajax?

892


Can you explain me how rails implements ajax?

802


What role does garbage collection play?

914


Do you know what is cross-site request forgery (csrf) and how rails is protected against it?

860


How are string and symbol different?

896


How to find second max element from database ?

889


What is agile development? What are the strengths?

866


What is rails active record?

912


Explain the role of sub directory app/controllers and app/helpers.

858


what is the difference between Dynamic and Static Scaffolding?

937