0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

git cloneで動かない!?.gitignoreを知った日

Posted at

背景

講座を受講しながら、システム構築している真っ最中。
PCを変えたタイミングで、ローカルでGit管理していたものをリモートにプッシュした。
新PCにクローンしたが動かない!!!

結論

.env が.gitignore 内で指定されていた。
.env の内容は.env.example に書かれていた。

以下、調べたこと

.gitignore とは

名前のとおり、gitをignore(無視)するためのファイル。
.gitignore ファイル内にファイル名やフォルダ名を記述することで、
Git管理から除外することができる。

.env とは

調べたら

環境変数を管理するファイル

と出てきた。
APIキーとか秘密鍵とか、公開してはいけないものもenvファイルに入れるらしい。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?