How it works...

The Odoo.sh platform is integrated with GitHub. You need to give full authorization to Odoo.sh, so that it can have access to your repositories. Odoo.sh will also create the webhooks. GitHub webhooks notify the Odoo.sh platform when a new commit or branch has been added to your repository. When you sign in for the first time, Odoo.sh will redirect you to GitHub. GitHub will show a page similar to the screenshot in step 1, in which you will need to provide access to all of your private and public repositories. If you are not the owner of the repository, you will see the button to make an access request to the owner for the rights.

After you grant repository access to Odoo.sh, you will be redirected back to Odoo.sh, where you will see the form to deploy the Odoo instance. To create a new instance, you will need to add the following information:

  • Github repository: Here, you will need to set the GitHub repository with your custom modules. The modules in this repository will be available to the Odoo instance. You will see a list of all your existing repositories. You can select one of them or create a new one.
  • Odoo version: Choose the Odoo version you want to deploy. You can select from the currently-supported Odoo LTS versions. Make sure you select the version that is compatible with the modules in the GitHub repository. For our example, we will select version 12.0.
  • Subscription code: This is the code to activate the instance. You will receive the code via email after purchasing an Odoo.sh plan; if you are an official Odoo partner, you can ask for this code from Odoo.
  • Hosting location: Here, you need to choose a server location based on your geographic location. The server that is nearest will give the best performance. Note that if you are creating an instance for your customer and the customer is in another country, you will need to select a server location that is near the customer location.

Once you submit this form, your Odoo instances will be deployed and you will be redirected to the Odoo.sh control panel. Here, you will see your first build. It will take a few minutes, and then you will be able to connect to your Odoo instance. If you check the left panel, you will see that there are no branches in the production and staging sections and that only one branch is in the development section. In the next few recipes, we will see how you can create staging and production branches.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset