feat(templates): add odoo template

This commit is contained in:
Mauricio Siu
2024-06-29 23:38:47 -06:00
parent 898880634a
commit ed0f3cadd6
4 changed files with 78 additions and 0 deletions

20
templates/odoo/index.ts Normal file
View File

@@ -0,0 +1,20 @@
import {
generateHash,
generateRandomDomain,
type Template,
type Schema,
} from "../utils";
export function generate(schema: Schema): Template {
const mainServiceHash = generateHash(schema.projectName);
const randomDomain = generateRandomDomain(schema);
const envs = [
`ODOO_HOST=${randomDomain}`,
"ODOO_PORT=8069",
`HASH=${mainServiceHash}`,
];
return {
envs,
};
}