Goアプリのデプロイ手順について確認させてください。
質問内容
私の手順を記載しますが、2点聞きたいことがあります。
①は、Procfileのコマンドについて。間違えているようでしたら、指摘していただけると助かります。
②は、pushまでできた後に、今躓いているエラーについて。対処法を教えていただけると助かります。
それでは、コマンドの手順を示します。
html
1$ GoPath>cd src 2$ mkdir appli 3$ cd appli 4$ echo web: appli > Procfile
①'web: appli' と記述すると、pushまではできますが、次のエラーとなります。
C:\Users\xyxyxy\go\src\appli>heroku ps:scale web=1
Scaling dynos... !
! Couldn't find that process type (web).
C:\Users\xyxyxy\go\src\appli>heroku ps
Free dyno hours quota remaining this month: 1000h 0m (100%)
Free dyno usage for this app: 0h 0m (0%)
For more information on dyno sleeping and how to upgrade, see:
https://devcenter.heroku.com/articles/dyno-sleeping
No dynos on ⬢ appli
①"web: appli"と記述すると、pushするときに、rejectされてしまいます。
この後の手順は、
html
1$ git init 2$ git add . 3$ git commit -m "first commit" 4 5$ heroku login 6$ heroku create appli -b https://github.com/heroku/heroku-buildpack-go.git 7$ heroku config:set --app appli CHANNEL_SECRET="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" 8$ heroku config:set --app appli CHANNEL_TOKEN="yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy" 9$ heroku addons:add --app appli cloudmqtt 10$ heroku config:set --app appli CLOUDMQTT_URL=" xxxxxxx@m16.cloudmqtt.com:25412" 11//SSLポートに変更しています。 12 13$ godep save 14& godep go install 15$ git add . 16$ git commit -m "second commit" 17$ git push heroku master
今、Pushまで完了している状況です。
①のProcfileの記述は、ダブルコーテーション"もシングルコーテーション'も付けない記述でここまで来ました。
この後、次のコマンドを実行すると、"crashed"となっていて、
html
1$ heroku ps:scale web=1 2$ heroku ps 3Free dyno hours quota remaining this month: 999h 24m (99%) 4Free dyno usage for this app: 0h 0m (0%) 5For more information on dyno sleeping and how to upgrade, see: 6https://devcenter.heroku.com/articles/dyno-sleeping 7 8=== web (Free): appli (1) 9web.1: crashed 2019/02/27 21:19:34 +0900 (~ 43s ago)
$ heroku logs --tailで通信ログを確認すると、次のエラーが発生しています。
019-02-27T12:21:45.611915+00:00 heroku[router]: at=error code=H10 desc="App cra
shed" method=POST path="/callback" host=appli.herokuapp.com request_id=6a3f6
501-52a1-4aef-831a-7dfe9231cfde fwd="203.104.146.155" dyno= connect= service= st
atus=503 bytes= protocol=https
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。