Getting Started
Ce contenu n’est pas encore disponible dans votre langue.
This page takes you from nothing to your own Odoo module running in production. The video shows the whole path in about five minutes; the steps below are the same path, one at a time, with the commands to copy.
You need a GitHub account, and Git and Docker on your machine. The example project is called
ged; use your own project’s name wherever it appears.
1. Create a project
Section titled “1. Create a project”In the portal, open Projects and click Create a project.
Give it a name and an address. The address is permanent: it becomes https://<address>.ordomatics.com.
The platform then builds the project: a code repository, file storage, a database and the servers. It takes a few minutes, and the page follows along on its own. When it says Ready, your Odoo is online.
2. Create your repository
Section titled “2. Create your repository”Your code lives in your own GitHub repository, created from our template.
On ordomatics/odoo-template, click Use this template → Create a new repository. Make it Private, and leave Include all branches off.
Clone it, then create the dev branch. You work on dev; main is what production runs.
git clone https://github.com/<you>/ged.gitcd gedgit switch -c devgit push -u origin dev3. Connect GitHub
Section titled “3. Connect GitHub”On your project’s page in the portal, click Connect GitHub. GitHub asks which repositories the Ordomatics app may access: choose Only select repositories and pick yours, then Install.
Back in the portal, pick the repository and click Use. The platform writes everything the build pipeline needs into the repository’s settings. You set none of it by hand.
4. Run it locally
Section titled “4. Run it locally”Copy the example environment file and set three values in it:
cp .env.example .env| Variable | Value |
|---|---|
COMPOSE_PROJECT_NAME |
Your project’s name |
PLATFORM_TAG |
Your project’s Odoo version, e.g. 18.0 |
DB_NAME |
Your project’s name |
Then start the stack:
docker compose up --build -dThe first start installs every module and takes a few minutes. Odoo is then on
localhost:8069, with the login admin and the password admin.
It is the same image production runs.
5. Write your module
Section titled “5. Write your module”Modules go in addons/. The example adds a filing reference to every document, on top of the
document management module that ships with the platform.
List your module at the end of modules.cfg, with anything it depends on before it:
dmsgedThat list is what gets a module installed, here and in production. Then restart Odoo:
docker compose restart odooA restart is enough because the platform’s image installs and upgrades everything in
modules.cfg each time it starts: new modules are installed, the others upgraded. You do not
run -i or -u yourself.
6. Push to dev
Section titled “6. Push to dev”git add -Agit commit -m "GED: a filing reference on documents"git pushEvery push to dev builds your image and tests that Odoo starts with it. Follow the run under
Actions in your repository.
7. Release to production
Section titled “7. Release to production”When the dev run has passed, fast-forward main to dev and push:
git switch maingit merge --ff-only devgit pushgit switch devProduction gets exactly the image that dev built and tested. Nothing is rebuilt. Your project’s
database is upgraded first, then the servers restart on the new image; expect the site to be
unavailable for a minute. The portal shows the release arrive, and then Up to date.
8. Check the logs and the live site
Section titled “8. Check the logs and the live site”On the environment’s page in the portal, View logs shows the web server, the background jobs and the live-updates server.
Then open your site and sign in. A new project starts with the login admin and the password
admin.
Next steps
Section titled “Next steps”Once a project is running, see Manage your project for environments, databases and your own domain.