Click here to Learn more about Gitpod for Magento 2 on our Course
This repository contains a Gitpod configuration for a Magento 2 cloud development environment.
The goal is to have a simple way of creating different configuraitons for Magento 2 dev environments, that begin quickly and require no further input to being using.
Once the Gitpod browser extension is installed Download Extension, click the Gitpod button in Github to get started with a blank Magento 2 enviroment.
All configuration options including Magento versions and Admin login are found here .gitpod.Dockerfile.
- Copy the
Gitpod
folder,gitpod.yml
and.gitpod.Dockerfile
files to an existing Magento 2 repository to use on your own project.
- Uncomment and complete the code here to have the script import an existing Magento 2 database.
- Replace
staging-domain.com
in the file with your Magento 2 url, this will be replaced with the current gitpod workspace URL before import. - Compress your .sql file and place into the gitpod folder as
magento-db.sql.zip
- Set INSTALL_MAGENTO = No in the .gitpod.Dockerfile
- Run Magento fully installed on load
- Have no files marked as changed in GIT.
- Install Magento SQL once on first load, delete flag to reinstall
- Import staging SQL file replacing urls
- Improve config to simplify configuring the build components
- Magento 2.4.6 and PHP8.2 support
- Add additional SQL and config updates, Magento config for SMTP details, Algolia indexing etc.
- Accept values for Magento configuration through Gitpod ENV
Based on the original Gitpod config produced by https://github.com/nemke82/magento2gitpod