Automated Certificate Management has failed (Incorrect DNS Settings)
Discussion
Herokuから以下のメールが来た
Automated Certificate Management has failed for the following domains:
Domain Reason
<my-domain-name> Incorrect DNS Settings
Dyno/アプリが起動していなかったのが原因だったので
ミニマムアプリをデプロイ・起動してACMをリフレッシュした
# 1. リポジトリをクローン
heroku git:clone -a <my-app-name>
cd <my-app-name>
# 2. package.json を作成
@'
{"scripts":{"start":"node index.js"}}
'@ | Out-File -Encoding utf8 package.json
# 3. index.js を作成
@'
require('http').createServer((_, res) => res.end('ok')).listen(process.env.PORT)
'@ | Out-File -Encoding utf8 index.js
# 4. Procfile を作成(BOMなしASCIIで出力)
"web: node index.js" | Out-File -FilePath Procfile -Encoding ascii
# 5. コミット&プッシュ
git add .
git commit -m "minimum app"
git push heroku main
# 6. Dynoが起動したらACMをリフレッシュ
heroku certs:auto:refresh -a <my-app-name>
Dynoの起動確認・ACMのステータス確認はHerokuダッシュボード(Settings画面)で行った
0 likes