CakePHPでCircleCIを利用した際に躓いた点のメモ

Pocket

CircleCIを利用した際のメモ。

躓いた点1 ComposerのインストールでGitHubのトークンが必要になった点

A token will be created and stored in "/home/ubuntu/.composer/auth.json", your password will never be stored
To revoke access to this token you can visit https://github.com/settings/applications
Username:

GitHubのSettings > Applications > Personal access tokensでトークンを取得し、
下記内容を記載したauth.jsonをcomposer.jsonと同じディレクトリに作成した。

{
  "github-oauth": {
    "github.com": "<token>"
  }
}

躓いた点2. Console/cake testでDBへ接続できなかった点

Database connection "Mysql" is missing, or could not be created.

Config/database.phpのhostをlocalhostから127.0.0.1へ変更した。

コメント

No comments yet.

コメントの投稿

改行と段落タグは自動で挿入されます。
メールアドレスは表示されません。