taps

heroku db:pull does not work?

╄→尐↘猪︶ㄣ 提交于 2020-01-11 01:33:06
问题 I get the following error message: heroku db:pull --debug postgres://USERNAME:PASSWORD@localhost/test Loaded Taps v0.3.23 Warning: Data in the database 'postgres://USERNAME:PASSWORD@localhost/test' will be overwritten and will not be recoverable. Receiving schema Unable to fetch tables information from http://heroku:foo9dsfsdfsdb465ar@taps19.heroku.com. Please check the server log. The command above does not produce any messages in the log that can be viewed using 'heroku logs'. Any idea what

Error while executing gem…Permission Denied

二次信任 提交于 2019-12-13 13:35:41
问题 I am attempting to install taps from my Heroku app folder. When I type "gem install taps," I get the following error: ERROR: While executing gem ... (Errno::EACCES) Permission denied - /Users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/taps-0.3.24/bin/taps I attempted to remove the taps-0.3.24 folder using rm -r and got this question: override rwxr-xr-x root/staff for /Users/jacob/.rvm/gems/ruby-1.9.3-p194/gems/taps-0.3.24//bin/schema? Upon typing yes, it tells me permission denied. Here is the

heroku db:push not working, using taps gem

柔情痞子 提交于 2019-12-12 11:35:37
问题 I use gem 'sqlite3', '1.3.5' on dev and gem 'pg', '0.12.2' on prod. ruby version ruby 1.9.3p125 (2012-02-16) [i386-mingw32] for a tutorial app am developing. I installed taps gem and tried heroku db:push and this is what I got. HTTP CODE: 500 Taps Server Error: PGError: ERROR: time zone displacement out of range: "2012-0 5-06 12:00:00.000000+5894529600" Here is the heroku log as well. What is the solution? FYI: db:pull works very well. I have also checked other similar posts but as of now I

How do I pull heroku data into a local SQLite3 database? Running into problems

痞子三分冷 提交于 2019-12-10 13:08:14
问题 I'm trying to make a local backup of the data from my Rails app, which is deployed to Heroku, and running into problems. I followed the instructions here: http://docs.heroku.com/taps and installed Taps. I get two types of errors. I created a SQLite db locally and tried pulling data with this command: (sudo) heroku db:pull sqlite://Users/username/folder/testbackup.db or (sudo) heroku db:pull sqlite://username:password@localhost/Users/username/folder/testbackup.db but either way I get this:

taps migration failing from sqlite to postgres rails4, ruby 1.9.3

微笑、不失礼 提交于 2019-12-01 05:26:46
I am trying to migrate my Rails app to Postgresql for heroku however i can't get taps to get the data from my SQLite3 database, here is what i have tried: Create the Postgres database user for the new databases $ createuser f3 Shall the new role be a superuser? (y/n) n Shall the new role be allowed to create databases? (y/n) y Shall the new role be allowed to create more new roles? (y/n) y EDIT - Updated command below - use this instead $ createuser f3 -d -s Create the required databases $ createdb -Of3 -Eutf8 f3_development $ createdb -Of3 -Eutf8 f3_test Update the Gemfile gem 'sqlite3' gem

taps migration failing from sqlite to postgres rails4, ruby 1.9.3

我的梦境 提交于 2019-12-01 03:11:42
问题 I am trying to migrate my Rails app to Postgresql for heroku however i can't get taps to get the data from my SQLite3 database, here is what i have tried: Create the Postgres database user for the new databases $ createuser f3 Shall the new role be a superuser? (y/n) n Shall the new role be allowed to create databases? (y/n) y Shall the new role be allowed to create more new roles? (y/n) y EDIT - Updated command below - use this instead $ createuser f3 -d -s Create the required databases $

heroku db:pull does not work?

北城以北 提交于 2019-11-30 18:41:13
I get the following error message: heroku db:pull --debug postgres://USERNAME:PASSWORD@localhost/test Loaded Taps v0.3.23 Warning: Data in the database 'postgres://USERNAME:PASSWORD@localhost/test' will be overwritten and will not be recoverable. Receiving schema Unable to fetch tables information from http://heroku:foo9dsfsdfsdb465ar@taps19.heroku.com. Please check the server log. The command above does not produce any messages in the log that can be viewed using 'heroku logs'. Any idea what I am doing wrong? Use pgbackups instead of taps/db:pull http://devcenter.heroku.com/articles/pgbackups

How to connect to postgresql using url

纵然是瞬间 提交于 2019-11-30 12:26:56
问题 I had asked an earlier question which did not get any replies. Basically I get an error invalid database url when I try to do heroku db:push . I figured I can try explicitly providing the database url. I tried: heroku db:push postgres://postgres@localhost/myrailsdb But that gave error: Failed to connect to database: Sequel::DatabaseConnectionError -> PGError fe_sendauth: no password supplied What is the format for providing username and password? 回答1: Try heroku db:push postgres://username

How to connect to postgresql using url

若如初见. 提交于 2019-11-30 03:13:42
I had asked an earlier question which did not get any replies. Basically I get an error invalid database url when I try to do heroku db:push . I figured I can try explicitly providing the database url. I tried: heroku db:push postgres://postgres@localhost/myrailsdb But that gave error: Failed to connect to database: Sequel::DatabaseConnectionError -> PGError fe_sendauth: no password supplied What is the format for providing username and password? Try heroku db:push postgres://username:password@localhost/myrailsdb . Here's how to do it in a Ruby script: # Connect to database. uri = URI.parse

filtering single and double taps

那年仲夏 提交于 2019-11-28 07:33:25
When the user single taps my view, i need one specific method to run. When the user double taps, i need another method do take place. The problem is that the double tap triggers the single tap, and it introduce bugs in my logic. I can't use UIGestureRecognizer because i need to keep track of the points. I try some booleans, but no chance. I also tried the cancel/perfomSelector-delay technique, but it does not work (that's strange because other folks on other forums said it works, maybe the simulator touch detection is different ?) I'm trying to let the user set the position (drag, rotate) of a