CLI Configuration

MDB CLI Configuration

This page contains configurations options for adding new domains, setting up git repository and more.

Custom domain

Add custom domain to your project

MDB GO allows you to add a custom domain to your project. In other words, if you are owner of yourdomain.com you can use this domain for your MDB GO project.

1. Run the following command inside your MDB project:

        
            
            $ mdb config domain <yourdomain>

            
        
    

(i.e. mdb config domain mydomain.com)

2. Re-publish your project

        
            
            $ mdb <entity> publish

            
        
    

(i.e. mdb frontend publish )

3. Add/modify A record and set target to: 93.105.88.216.

Note: Configuration of the DNS records vary depending on hosting provider. In order to edit A record you have to sign in to your hosting provider where you bought domain and search for DNS configuration. Watch the video to see sample configuration on OVH.

Video tutorial:


GIT repository

Add git repository to your project

MDB GO allows you to add a git repository to your projects. In order to do so simply login to your admin panel at mdbgo.com, navigate to projects and click at MANAGE button next to the project.

If your project doesn't have repository you will see X next to "Repository" field.

repository

In case your project already have a repository you will see a link to it.

Click CREATE button. This will create a git repository and submit your currently deployed code into a new repository.

Now you can navigate to your git project, review history, manage access and more.

From now on whenever you run mdb get command to download your MDB GO project to your local computer it will clone the project from GIT repository (instead of downloading it from FTP)

Video tutorial: