将本地数据库数据上传到heroku [英] uplaod local database data to heroku
问题描述
我尝试将我的开发数据上传到我的heroku站点数据库 -
我遵循本指南:
我得到以下错误:
请先通过以下方式添加pgbackups插件:
heroku addons:add pgbackups
我跑上面的命令得到:
警告:
heroku addons:add
已被弃用。请改用heroku
。
addons:create
!没有这样的附加计划。
我运行了命令heroku addons:create pgbackups并得到:
!没有这样的附加计划。
我不知道该怎么办?
您正在关注的指南已过时, pgbackups
插件已被不建议使用。
以下是您要查找的指南: https://devcenter.heroku.com/articles/heroku-postgres-backups
heroku pg:备份恢复'https://s3.amazonaws.com/me/items/mydb.dump'DATABASE -a sushi
I'm trying to upload my development data to my heroku site database -
I followed this guide:
How can I upload a DB to Heroku
I got the following error:
Please add the pgbackups addon first via:
heroku addons:add pgbackups
I ran the command above and got:
WARNING:
heroku addons:add
has been deprecated. Please useheroku addons:create
instead. ! No such add-on plan.
I ran the command "heroku addons:create pgbackups" and got:
! No such add-on plan.
I don't know what to do?
The guide you're following is outdated, the pgbackups
addon has been deprecated.
Here's the guide you're looking for: https://devcenter.heroku.com/articles/heroku-postgres-backups
heroku pg:backups restore 'https://s3.amazonaws.com/me/items/mydb.dump' DATABASE -a sushi
这篇关于将本地数据库数据上传到heroku的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!