Magento Commerce Cloud setup
Alternatively to Magento Commerce Cloud consider using ReadyMage. ReadyMage is ScandiPWA optimized cloud hosting and supports Magento Commerce projects.
ScandiPWA setup on Magento Commerce Cloud requires adjusting 2 files in the project root folder that are used for deployment flow.
bitbucket-pipelines.yaml
Requires adjustments to allow pushing code from BitBucket of the git repository to Magento Cloud project repository. CI/CD is used for this purpose. Git authentication is made using public keys. Generate the key in the BitBucket repository and add it to the Magento Cloud in the admin panel.
Here is an example of how the bitbucket-pipelines.yaml
file should be configured. It contains configuration for 2 environments:
production (using master branch);
stage (using stage branch).
Replace example credentials and git links with your project actual links.
magento.app.yaml
ScandiPWA compilation is done in magento.app.yaml
file. Within it options and commands are configured to be run during deployment.
Here is part of the file that is responsible for ScandiPWA compilation which has to be added to the existing magento.app.yaml
file content.
Last updated