我試圖做heroku db:push
這給了我下面的錯誤我的數據庫發送到Heroku的:Heroku的PG:push命令缺少
! db:push and db:pull have been removed and replaced with pg:push and pg:pull.
! For more information, please see:
! devcenter.heroku.com/articles/heroku-postgresql#pg-push-and-pg-pull
所以,我想heroku pg:push
這給了我這個錯誤:
! `pg:push` is not a heroku command.
! Perhaps you meant `db:push` or `pg:ps`.
而且heroku help pg
給
pg:credentials DATABASE # Display the DATABASE credentials.
pg:info [DATABASE] # Display database information
pg:promote DATABASE # Sets DATABASE as your DATABASE_URL
pg:psql [DATABASE] # Open a psql shell to the database
pg:reset DATABASE # Delete all data in DATABASE
pg:unfollow REPLICA # stop a replica from following and make it a read/write database
pg:wait [DATABASE] # monitor database creation, exit when complete
我的應用程序是在CEDA [R堆棧和這裏就是我使用了全命令:
heroku pg:push my_local_name HEROKU_POSTGRESQL_CHARCOAL --app my_app_name
也嘗試添加上pgbackups
但我仍然得到同樣的錯誤的建議。
你看過這個答案嗎? http://stackoverflow.com/questions/19490938/push-database-to-heroku-how-to-use-heroku-pgpush,似乎存在,但你可能需要更多的輸入commadn – blotto
你能粘貼完整的命令你正在嘗試使用? (我的意思是這樣的Heroku'PG:按yourlocaldb HEROKU_POSTGRESQL_ [COLOR_NAME] --app yourappname') – lidkxx
只是看着從'Heroku的幫助pg'你的輸出更接近,嘗試運行'Heroku的插件:添加pgbackups'? – lidkxx