aman
aman

Reputation: 53

Starting a Ruby application

I was given a ruby application to run, the problem is I have no idea how to run it. I am using ubuntu , and I installed apache, mysql, and ruby. The app has a folder "app" that contains "views,controllers,helpers,models" folders. I know that I must use "ruby name_of_app" to start the app, but I can't seem to find the file. Is there a standard location for that file?

Upvotes: 5

Views: 21269

Answers (3)

Alex
Alex

Reputation: 2013

Sounds like a ruby on rails app.

Here is a link to a getting started guide. You should be able to pick your way through and run the rails app.

http://guides.rubyonrails.org/getting_started.html

Upvotes: 0

Gareth
Gareth

Reputation: 138200

You've been given a Rails application. If you've installed the correct version of the rails gem then you can just run one of the following from the project directory (the directory containing the app folder):

$ ./script/server  # for Rails 2
$ rails server     # for Rails 3

and visit http://localhost:3000 in your browser

Upvotes: 7

Christian Schwartz
Christian Schwartz

Reputation: 355

It looks like you're working on a ruby on rails app, so you should try running rails server in the parent of the app directory to start the application.

Upvotes: 0

Related Questions