Create data folder

When cloning this project from scratch and running `make pre-config`, it gave the following error:

`ln: failed to create symbolic link './data/current_flavour': No such file or directory`

This is a result of the `data` folder being unable to be created automatically, as explained [here](https://unix.stackexchange.com/a/668367/370076). Adding this `mkdir` command avoids this error for new users to the project and won't cause problems for existing users either, thanks to the `-p` flag.
This commit is contained in:
Aaron Meese 2021-10-30 14:21:04 -05:00 committed by GitHub
parent d307f4fe28
commit 14e7328cd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,6 +52,7 @@ pre-config: pre-init ## Initialise env files, and create some required folders,
pre-init:
@ln -sfn $(FLAVOUR_PATH)/config ./config
@mkdir -p data/
@ln -sf $(FLAVOUR_PATH) ./data/current_flavour
@mkdir -p config/prod
@mkdir -p config/dev