-
git clone https://github.com/bagrinsergiu/MB-migration.git
-
go to the project directory
-
set up options to your environment
.env.dev
for development and.env.prod
for the production.
Addition: indocker-compose.yaml
configurations, use the value forAPP_ENV
prod
- for production
dev
- for development -
execute the command to build the project
docker compose build migration
&&docker compose up -d
Once started, you should be able to access http://localhost/
.
you should get:
HTTP/1.1 400 Bad Request
{
"error": "Invalid mb_project_uuid"
}
Great, so the project is ready to go.
http://localhost/?mb_project_uuid=3020176d-edf2-4459-b0dc-1e5caecb0c5f&brz_project_id=4474615
mb_project_uuid
- specify the original uuid of the Ministry Brands project
brz_project_id
- specify the target id of the Brizy project
for development there is an additional parameter that allows you to build only one page of the project
http://localhost/?mb_project_uuid=3020176d-edf2-4459-b0dc-1e5caecb0c5f&brz_project_id=4474615&mb_page_slug=home
mb_page_slug
- point to the slug of the page you want to build
you should get a response when the migration completes successfully
example response:
{
"status": "success",
"UMID": "cbcd98f2edcdd92fa7e0282feb8fa9c2",
"progress": {
"Total": 15,
"Success": 14
},
"processTime": 128
}