I have created an app in RoR, but the problem is that i am not able to get the root page that is "posts#index" on heroku but i am able to view it on rails local server. The route file is
Rails.application.routes.draw do
resources :posts
root "posts#index"
get "/posts/new" => "posts#show"
end
I am using sqlite3 for development and test & postgreSQL for production.
And the heroku log contains error like
- Warning: the running version of Bundler is older than the version that created the lockfile. We suggest you upgrade to the latest version of Bundler by running
gem install bundler
- Include 'rails_12factor' gem to enable all platform features.
- No Procfile detected, using the default web server. We recommend explicitly declaring how to boot your server process via a Procfile.
A thanks in advance.
Aucun commentaire:
Enregistrer un commentaire