【IT】heroku: You've reached the app limit of 5 apps for unverified accounts. Delete some apps or add a credit card to verify ! ・・・
Spring boot アプリケーションをherokuへデプロイ作業中に次のエラーが発生しました。
ちなみに、Spring bootについて学ぶならUdemyがおすすめです。頻繁にUdemyではセールをやっているので、セールを狙って買いましょう!Udemyのセールはこちらの記事で最新セール情報が確認できます。
1.事象
以下を実行します。
C:\Users\Documents\jar\salesmanagerTest>heroku create
結果です。
Creating app... ! You've reached the app limit of 5 apps for unverified accounts. Delete some apps or add a credit card to verify your account.
2.原因
5アプリまでしか作成できない。
3.解決方法
・作成したアプリを削除する
・自分のアカウントにクレジットカード情報を追加する
4.対処
「作成したアプリを削除する」で対応します。
1)作成したアプリを確認
以下コマンドで確認。
C:\Users\Documents\jar\salesmanagerTest>heroku apps
確認結果です
=== XXXX@gmail.com Apps dry-woodland-96223 shrouded-headland-53696 shrouded-ocean-69466 stark-caverns-40378 thymeleaformtest
2)作成したアプリを削除する
以下コマンド実行
C:\Users\Documents\jar\salesmanagerTest>heroku destroy --app stark-caverns-40378
以下の削除確認メッセージが表示される。
» Warning: heroku update available from 7.53.0 to 7.59.2. ! WARNING: This will delete ⬢ stark-caverns-40378 including all add-ons. ! To proceed, type stark-caverns-40378 or re-run this command with --confirm ! stark-caverns-40378
3)アプリ名を入力し実行
以下を入力し実行。
stark-caverns-40378
実行後メッセージが表示されます
Destroying ⬢ stark-caverns-40378 (including all add-ons)... done C:\Users\Documents\jar\salesmanagerTest>.git8 including all add-ons. ! To proceed, type stark-caverns-40378 or re-run this command with --confirm ! stark-caverns-40378 > stark-caverns-40378
4)アプリが削除されているのを確認
以下のコマンド実行します
C:\Users\Documents\jar\salesmanagerTest>heroku apps
アプリが4つになっていることを確認します
» Warning: heroku update available from 7.53.0 to 7.59.2. === XXXX@gmail.com Apps dry-woodland-96223 shrouded-headland-53696 shrouded-ocean-69466 thymeleaformtest