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 , a开发者_高级运维nd 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?
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
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.
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
精彩评论