Created
August 12, 2011 15:55
-
-
Save brentertz/1142346 to your computer and use it in GitHub Desktop.
For QuickLeft Blog Post on Heroku/Taps
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ heroku db:pull | |
... | |
Receiving schema | |
Schema: 100% |==========================================| Time: 00:00:00 | |
Receiving indexes | |
users: 100% |==========================================| Time: 00:00:01 | |
orders: 100% |==========================================| Time: 00:00:00 | |
Receiving data | |
2 tables, 300 records | |
Resetting sequences |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ heroku db:pull --filter '^log_' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ heroku db:pull sqlite://path_to_db/my.db |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ heroku db:pull --tables users,orders |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ heroku db:push | |
... | |
Sending schema | |
Schema: 100% |==========================================| Time: 00:00:01 | |
Sending indexes | |
Sending data | |
2 tables, 300 records | |
users: 100% |==========================================| Time: 00:00:01 | |
orders: 100% |==========================================| Time: 00:00:00 | |
Resetting sequences |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ heroku db:push postgres://postgres:mypass@remotehost/mydb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install heroku | |
$ gem install taps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ gem install taps |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ taps pull postgres://dbuser:dbpassword@localhost/dbname http://httpuser:[email protected]:5000 | |
$ taps push postgres://dbuser:dbpassword@localhost/dbname http://httpuser:[email protected]:5000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ taps server postgres://localdbuser:localdbpass@localhost/dbname httpuser httppassword | |
== Sinatra/1.0 has taken the stage on 5000 for production with backup from WEBrick |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment