Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

リポジトリ名を修正(cord-player -> chord-player) #4

Closed
ryo-i opened this issue Sep 28, 2021 · 11 comments
Closed

リポジトリ名を修正(cord-player -> chord-player) #4

ryo-i opened this issue Sep 28, 2021 · 11 comments

Comments

@ryo-i
Copy link
Owner

ryo-i commented Sep 28, 2021

綴りが間違えていた。。

和音(わおん、英語: chord(コード)、独: Akkord)

https://ja.wikipedia.org/wiki/%E5%92%8C%E9%9F%B3#:~:text=%E5%92%8C%E9%9F%B3%EF%BC%88%E3%82%8F%E3%81%8A%E3%82%93%E3%80%81%E8%8B%B1%E8%AA%9E%3A,%E9%9F%B3%E3%81%AE%E3%81%93%E3%81%A8%E3%81%A7%E3%81%82%E3%82%8B%E3%80%82

リポジトリの変更方法
https://docs.github.com/ja/github/administering-a-repository/managing-repository-settings/renaming-a-repository
https://qiita.com/hirokt/items/583e8dbe4970bc8c25c8

コードの中にもcordと書いている場所があるので一緒に直す

@ryo-i
Copy link
Owner Author

ryo-i commented Sep 29, 2021

リポジトリ名変更後にVercelへのデプロイがどうなるか
https://gist.github.com/hankei6km/70f1e386a4911909ce0facd379aa9708

@ryo-i
Copy link
Owner Author

ryo-i commented Sep 29, 2021

まずGitHub上のSettingでリポジトリ名をRenameした
https://github.com/ryo-i/chord-player

@ryo-i
Copy link
Owner Author

ryo-i commented Sep 29, 2021

次にローカルのリポジトリURLを変更

$ git remote set-url origin https://github.com/ryo-i/chord-player

configファイルのremote "origin"のurlが変わった

ryo-i added a commit that referenced this issue Sep 29, 2021
@ryo-i
Copy link
Owner Author

ryo-i commented Sep 29, 2021

Vercelのプロジェクト内にProject Settingsというページがあり、そこでプロジェクト名を変えられそう。

「chord-player」に変更してみる

@ryo-i
Copy link
Owner Author

ryo-i commented Sep 29, 2021

このコミットはデプロイエラーになった
f861bbd

Failed to assign a domain to your deployment due to the following error:
Aliasing the Deployment Timed Out

「次のエラーのため、デプロイメントにドメインを割り当てることができませんでした。
展開のエイリアスがタイムアウトしました」

@ryo-i
Copy link
Owner Author

ryo-i commented Sep 29, 2021

Vercelのプロジェクト内のSettingsのdomainsでドメインも変更してみる。

https://chord-player.vercel.app/

@ryo-i
Copy link
Owner Author

ryo-i commented Sep 29, 2021

デプロイがうまくされないため、新プロジェクトを作ることにする。

旧プロジェクトは「-bk」付きに再度リネイム。ドメインも。
https://chord-player-bk.vercel.app/

@ryo-i
Copy link
Owner Author

ryo-i commented Sep 29, 2021

Vercelで新規プロジェクトを作成。
https://chord-player.vercel.ap

テスト用のタグが適用された!
スクリーンショット 2021-09-30 6 47 45
p/

@ryo-i
Copy link
Owner Author

ryo-i commented Sep 29, 2021

新プロジェクトへのデプロイが成功したあと、旧プロジェクト(-bk版)のデプロイもなぜか成功するようになった。
重複なのでこちらのGitHubとの連携は解除しておく

@ryo-i
Copy link
Owner Author

ryo-i commented Sep 29, 2021

次はコードの中にある「cord」や「code」を「chord」に打ち替えていきたい。

キャメルケースの大文字小文字が検索置換で区別されるようにする(「aA」アイコンを選択)
https://qiita.com/Adaachill/items/3f7abde234a05df8e312

ryo-i added a commit that referenced this issue Sep 29, 2021
@ryo-i
Copy link
Owner Author

ryo-i commented Sep 29, 2021

リポジトリ、デプロイ、コード内の綴りを「chord」で統一できた。クローズ。

@ryo-i ryo-i closed this as completed Sep 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant