Run composer create-project.. in entrypoint script if there is no composer.json #2

Open
opened 2021-12-06 13:05:52 +00:00 by 3wordchant · 0 comments
Owner

Related to #1 - to hew closer to the upstream wordpress docker image behavior of gracefully handling an empty directory, and to make life easier if we ever want to reinitialise from a new bedrock version, it might it be nice to automatically run composer create-project roots/bedrock /app if there's no composer.json present.

We probably want an environment variable to be able to disable this, for when we'll be copying in our own contents.

For safety, it should also bail out if there are unexpected files present.

Related to #1 - to hew closer to the upstream wordpress docker image behavior of gracefully handling an empty directory, and to make life easier if we ever want to reinitialise from a new bedrock version, it might it be nice to automatically run `composer create-project roots/bedrock /app` if there's no `composer.json` present. We probably want an environment variable to be able to disable this, for when we'll be copying in our own contents. For safety, it should also bail out if there are unexpected files present.
naomi changed title from Run `composer create-project..` in entrypoint script if wordpress is not installed to Run `composer create-project..` in entrypoint script if there is no composer.json 2021-12-07 09:29:58 +00:00
This repo is archived. You cannot comment on issues.
No Milestone
No project
No Assignees
1 Participants
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: autonomic-cooperative/wordpress-bedrock-template#2
No description provided.