Home > Coding, GNU/Linux, Heroku, Sqlite > Overwrite remote sqlite db with local db on heroku (push database)

Overwrite remote sqlite db with local db on heroku (push database)


Check first, local.db is exist

      sopir@debian:~/public_html/scanty/scanty$ ls
      access.log  blog.db  config.ru  lib  main.rb  public  Rakefile  read.me  README.rdoc  spec  vendor  views

Push to repo

      sopir@debian:~/public_html/scanty/scanty$ heroku db:push sqlite://blog.db
      Loaded Taps v0.3.9
      Warning: Data in the app 'sopir' will be overwritten and will not be recoverable.
      Are you sure you wish to continue? (y/n)? y
      Sending schema
      Schema:        100%
      |=======================================================================================================================| Time: 00:00:02
      Sending indexes
      Sending data
      1 tables, 0 records
      posts:         100%
      |=======================================================================================================================| Time: 00:00:00
      Resetting sequences
      sopir@debian:~/public_html/scanty/scanty$
Advertisements
Categories: Coding, GNU/Linux, Heroku, Sqlite Tags: , , ,
  1. January 5, 2015 at 9:54 am

    bermanfaat info dan artikelnya

  2. January 6, 2015 at 1:53 pm

    kunjungan siang

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s