在关闭帐户之前,如何确保我在Heroku上下载了所有数据? [英] How to make sure I download all data on Heroku before closing the account?

查看:74
本文介绍了在关闭帐户之前,如何确保我在Heroku上下载了所有数据?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不了解Heroku的结构(我不是程序员).如何在关闭帐户之前下载应用程序和数据库?

I do not understand the structure on Heroku (I'm not a programmer). How can I download apps, databases before closing the account?

推荐答案

对于初学者来说,您不需要

For starters, you shouldn't need to download you apps from Heroku:

Heroku应用程序的Git存储库仅用于部署目的.正式不支持从此存储库进行克隆作为功能,并且仅应在没有其他选择的情况下尝试进行克隆.请勿使用此存储库作为您应用的规范原始"存储库.而是使用您自己的Git服务器或版本控制服务(例如GitHub).

A Heroku app’s Git repository is intended for deployment purposes only. Cloning from this repository is not officially supported as a feature and should be attempted only as a last resort. Do not use this repository as your app’s canonical "origin" repository. Instead, use your own Git server or a version control service such as GitHub.

即使您没有使用GitHub或类似的软件,每个开发人员都应该拥有该应用程序的副本.在Heroku上无法实时开发",因此每个应用程序必须至少有一个副本(除非已将其删除).

Even if you're not using GitHub or similar each of your developers should have a copy of the application. There's no way to "develop live" on Heroku, so there must be at least one other copy of each application (unless they've been deleted).

就数据库而言,如果您使用的是Heroku Postgres,则可以

As far as databases go, if you're using Heroku Postgres you can download a copy of your database using heroku pg:backups:capture followed by heroku pg:backups:download, as documented. Other database addons have different needs.

确保您拥有一切的最佳选择是将您的应用程序旋转到其他位置并确保它可以正常工作.如果您有测试套件,请运行它.验证数据非常棘手,但是您可以检查一些简单的指标,例如表的数量和名称,每个表中的记录数量,以确保您可以使用自己拥有的任何帐户登录,并且其面向应用程序的数据看起来合理,等

Your best bet to make sure you have everything is to spin your application up somewhere else and make sure it works. If you have a test suite, run it. Validating data will be tricky, but you can check some simple metrics like the number and names of tables, the number of records in each table, making sure you can log in with any accounts you have and that their application-facing data looks reasonable, etc.

这篇关于在关闭帐户之前,如何确保我在Heroku上下载了所有数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆