Repository navigation
merge fix(docs): add npm run postinstall - #463
NorthDecoder wants to merge 2 commits into
Conversation
- The .env file is mandatory but not supplied by the project. - Running the postinstall script command will copy the - .env.example file into the .env file.
|
@NorthDecoder I believe the "Docker Mode" install will already run the post install script, so this may be best to add only in the "Manual Mode". Would you agree we could move this under the Manual Mode heading of Step 2 of Running the Application? Also, I suspect this could merge in fine, but this PR is going master to master and step 5 of the CONTRIBUTING.md suggests all PRs be off a branch like docs/name-of-your-branch. Thanks, |
|
Actually, I don't think it's Docker that creates the .env. I just did a fresh install and ran the That step is for Docker Mode or Manual Mode. So, it would seem we don't need to manually call |
|
It looks like the "post" prefix in package.json scripts creates a special lifecycle hook that fires when npm install, or seemingly the related npx recursive-install are run. So, that likely explains why running @NorthDecoder can you try a fresh test, like and see if the .env file gets created (via the output of the ls command before and after the npx)? |
|
I have removed project and started fresh again and found that the postinstall script was indeed run and the default .env file was created as expected. Therefore this pull request issue and the associated issue #462 can be closed, with understanding to continue review of wording in the contributing.md file. |
Update README.md).masterbranch of Chapter.Closes #462
The .env file is mandatory but not supplied by the project.
Running the postinstall script command will copy the
.env.example file into the .env file. If the .env exists,
the copy will not occur.