mysql - Connecting to an existing rails app -


we making site runs ruby on rails. teammate, better coding knowledge, has made rails app database. running code on localhost develop site.

he has mac , have windows. have done necessary steps run ruby , bundles. have right versions of , gems installed, cannot see site live on localhost. made rails app existing folder teammate sent on me on drive.

do need connect existing database somehow or make own one? need connecting existing project. have same folders , routes. suggestions?

config/routes.rb

rails.application.routes.draw     devise_for :users     resources :posts         resources :comments         member |variable|             put "like", to: "posts#upvote"         end     end     resources :pins     root 'pins#index'     'new' => 'posts#new'     'tags/:tag' => 'posts#index', as: :tag end 

whilst of trivial answer, nevertheless..

if have sent me project, these steps i'd take run it...

1) cd root of rails project inside console.
2) bundle (to install gems)
3) bundle exec rake db:migrate (to migrate database)
4) rails s (to run server)
5) go browser , visit localhost:3000 , see if works.

but, again, please provide console log see going on.

update:

adding root route app...

routes.rb

rails.application.routes.draw    root 'your_controller#your_action/view'   .   .   . end 

Comments