Here is an example of a Prestashop project configured with Protocode:
https://github.com/protocode-tech/prestashop-template
It contains a .protocode
directory that holds all the configuration:
└── prestashop-template/
├── .protocode/
│ └── .env
│ └── docker-compose.yml
│ └── Dockerfile
│ └── lifecycle/
│ └── postUp.sh
│ ... Rest of the files
preUp.sh
file creates the configuration files and folders expected by Prestashop and resolves any permission issues.In a similar project, you can copy the contents of the .protocode
folder into your project, version it, and reference it in the repository configuration on Protocode. Retrieve the content of this directory and version it within your project, then in the Protocode repository virtualization configuration, select "Use the docker-compose file within the repository", and specify the location .protocode/docker-compose.yml
. Then, in the "Initialization" section, under "Before container build", place .protocode/lifecycle/preUp.sh
.