2019年8月18日日曜日

Heroku(途中)

  • Heroku
    • Heroku 初期手順
      1. Heroku Toolbeltインストール Herokuを操作・管理できるツール https://devcenter.heroku.com/articles/heroku-cli

      2. コマンドプロンプトで heroku login 必要に応じてuser、passwordを入力

      3. ひな形アプリ取得

        git clone https://github.com/heroku/java-getting-started.git my_first_app
      4. アプリ作成

        heroku create
      5. アプリpush

        git push heroku master
        • エラー

          To https://git.heroku.com/[applicationname].git ! [rejected] master -> master (non-fast-forward) error: failed to push some refs to 'https://git.heroku.com/[applicationname].git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote changes (e.g. hint: 'git pull ...') before pushing again. hint: See the 'Note about fast-forwards' in 'git push --help' for details.

          リビジョンが戻ってる場合に出る。
          分かった上で強制的にpushする場合は以下。

          git push heroku master --force
      6. アプリを開く
        ブラウザでpushしたアプリが開く。

        heroku open
    • 引っかかった所
      • 何回やっても以下エラーが出る。

        Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 90 seconds of launch
        • application.ymlのポート指定をしてなかった。
          サンプルアプリを参考に以下を設定。
          server: port: ${PORT:5000}
        • アドレスを指定してた。
          以下設定を削除。
          server: address: 127.0.0.1

katalon studio 画面が静的になるまで待つ?smart waitという機能がある。これがあると入力動作が遅くなる。 停止方法 プロジェクト全体の設定 [Project]-[Settings]-[Execution]-[WebUI] 、一番上の [Default Sma...