top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How can get data from localhost:3000 in ruby on rails to heroku

+1 vote
477 views

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 doing 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.

posted Jul 8, 2014 by Alok Sharma

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button
I don't think you understand the concept of databases very well. Google how to use the "seeds.rb" file. Maybe that will help.

1 Answer

0 votes

Here's one way to approach this. I had tried this in the past and it worked fine

https://blog.heroku.com/archives/2007/11/23/yamldb_for_databaseindependent_data_dumps

answer Jul 8, 2014 by Sonu Jindal
Similar Questions
+1 vote

Is there a file storage on heroku(other than s3), for the files uploaded in app.

+1 vote

I deployed one small app in heroku built on ROR, now I want to send mails. How is it possible can anyone give me a details how to do it.

+1 vote

I have problem on stylesheet. When I use it on local machine it work properly, but when I deployed it to heroku my style doesn't work. How do I fix this?

+2 votes

I have installed the Heroku on my workspace, however when I type any command, for example- heroku login or heroku version , it just shows the command- "heroku-cli: Installing core plugins..." and keep doing the same until I stop the installation manually.

Can somebody help me with what the actual issue is and how I can deploy the app on heroku!

...