-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cpa): ensures .env & .env.example file modifications occur before…
… git initialization (#10312) ### What? Previously, `.env` & `.env.example` modifications during `cpa` occurred after a project was initialized. ### Why? As a result, these modifications would be seen as uncommitted modifications in the project repo. ### How? Now, we make these modifications in the `createProject` script before the project is initialized. Also, updates the **template** `.env.example` files to use the generic db name `your-database-name` for better alignment & clarity. Fixes #10232
- Loading branch information
1 parent
daf314c
commit 3847718
Showing
6 changed files
with
20 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
DATABASE_URI=mongodb://127.0.0.1/payload-template-blank-3-0 | ||
DATABASE_URI=mongodb://127.0.0.1/your-database-name | ||
PAYLOAD_SECRET=YOUR_SECRET_HERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
DATABASE_URI=mongodb://127.0.0.1/payload-template-blank-3-0 | ||
DATABASE_URI=mongodb://127.0.0.1/your-database-name | ||
PAYLOAD_SECRET=YOUR_SECRET_HERE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
DATABASE_URI=mongodb://127.0.0.1/payload-template-blank-3-0 | ||
PAYLOAD_SECRET=YOUR_SECRET_HERE | ||
DATABASE_URI=mongodb://127.0.0.1/your-database-name | ||
PAYLOAD_SECRET=YOUR_SECRET_HERE |