Because Heroku doesn't use SQLite. It switched to Postgres database in the backend. Try to use Postgres DB in your development and production environments so you can backup your local database and restore it to Heroku database using pgAdminIII.
Login to Heroku to get database Connection Settings and follow this screenshot to connect to Heroku database using pgAdminIII: http://goo.gl/iClfdm
~Ron
On Monday, July 7, 2014 7:21:23 PM UTC-7, huon sothon wrote:
Hi i'm new developer ROR .I have some question to ask?
In my local machine i had input some data into database using SQLite3 .when i deployed it to heroku why i can't get data that i input? i'm do like this
-in Gemfile
group :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
-bundle install
-heroku login
-git init
-git add .
-git commit -m "test"
-git create
-git push heroku master
-heroku run rake db:migrate
how can i get some data when i deployed it to heroku? please help me.
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/4a879220-b9c7-4408-a6cc-5a35c91c2837%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.