Start a new topic
Answered

Recreate a dev environment. Any side effect?

I have to re-create from scratch my dev environment but it has already been deployed into prod, should I be aware of any side-effect?


Best Answer

When recreating your development environment, you must keep in mind to sync that development environment to your production environment. This synchronization ensures that when you close a model in development, you are able to import the new model as a model edition to the existing root model and not create a new root model. 

  1. In DEV environment
    1. Export the current model that is up to date.
    2. Delete the data location in Development and Drop the schema
      •  Note you will lose your data in the Dev environment. 
  2. In Production, you will make a backup of the repository.
  3. Restore the backup of PROD in the DEV environment and change the REPOTYPE in the  mta_repository table to DESIGN. update mta_repository set repotype = 'DESIGN';
  4. Do an import-replace the model using the previously exported model from dev
  5. In the Dev repository change the mta_model_edition status to Open update mta_model_edition set status= 'OPEN' where uuid=xxxx;
  6. Restart tomcat (otherwise the model edition status will still be closed when looking at it from the Application Builder)
1 Comment

Answer

When recreating your development environment, you must keep in mind to sync that development environment to your production environment. This synchronization ensures that when you close a model in development, you are able to import the new model as a model edition to the existing root model and not create a new root model. 

  1. In DEV environment
    1. Export the current model that is up to date.
    2. Delete the data location in Development and Drop the schema
      •  Note you will lose your data in the Dev environment. 
  2. In Production, you will make a backup of the repository.
  3. Restore the backup of PROD in the DEV environment and change the REPOTYPE in the  mta_repository table to DESIGN. update mta_repository set repotype = 'DESIGN';
  4. Do an import-replace the model using the previously exported model from dev
  5. In the Dev repository change the mta_model_edition status to Open update mta_model_edition set status= 'OPEN' where uuid=xxxx;
  6. Restart tomcat (otherwise the model edition status will still be closed when looking at it from the Application Builder)
Login to post a comment