Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Add npm run postinstall to contributing.md #462

Closed

Description

@NorthDecoder

Describe the bug:

The .env file is mandatory for the project to build, however it is intentionally not provided as part of the project as it will contain the project secrets. The Chapter developer/installer is required to issue the proper commands to create and edit the .env file.

A script has been provided to copy defaults values from the .env.example into the .env .

Put the following sentence into the CONTRIBUTING.md file around line 310 in
the section run the app step 1.

Run npm run postinstall to copy the file .env.example into the file .env.
If the .env file exists it will not be overwritten.

Tell us about your browser and operating system:

  • Browser(s) name and version: terminal
  • Operating System:
    uname -ior
    5.3.7-301.fc31.x86_64 x86_64 GNU/Linux

Activity

  1. allella commented on Mar 26, 2021

    @allella
    Contributor

    Added notes on PR #463 to test if this is necessary since running the mandatory npx recursive-install step should run the postInstall hook in package.json, which is tasked with creating .env if it doesn't exist.

  2. allella commented on Mar 26, 2021

    @allella
    Contributor

    Posting images for reference

    image

    image

  3. NorthDecoder commented on Mar 29, 2021

    @NorthDecoder
    ContributorAuthor

    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 issue and the associated pull request #463 can be closed, with understanding to continue review of wording in the contributing.md file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions