He resuelto este problema con este truco en el archivo package.json principal:
"build": "cds build/all --clean;cp gen/srv/srv/csn.json srv/gen/;cp -r gen/db/src/gen db/src",
Avalados por :
I've refactored my project to use the new Cloud Platform Application Programming Model.
My project structure looks file this:
<my_project_name>
- hdb (db module)
- srv (service module)
- ui (ui module)
- cdsrc.json
- package.json
- mta.yaml
cdsrc.json:
{
"build": {
"target": ".",
"tasks": [
{"src":"hdb","for":"hana","options":{"model":["hdb","srv"]}},
{"src":"srv","for":"node-cf","options":{"model":["hdb","srv"]}}
]
}
}
package.json:
{
"name": "<my_project_name>",
"description": "",
"version": "1.0.0",
"engines": {
"node": "^8.9"
},
"files": [
"hdb",
"srv"
],
"dependencies": {
"@sap/cds": "^3.7.1",
"express": "^4.16.4",
"hdb": "^0.17.0"
},
"devDependencies": {
"sqlite3": "^4.0.8"
},
"scripts": {
"start": "cds run",
"build": "cds build/all --clean",
"deploy": "cds deploy"
},
"cds": {
"requires": {
"db": {
"kind": "sqlite",
"model": [
"hdb",
"srv"
],
"credentials
He resuelto este problema con este truco en el archivo package.json principal:
"build": "cds build/all --clean;cp gen/srv/srv/csn.json srv/gen/;cp -r gen/db/src/gen db/src",
El mismo problema conmigo. Espero que lo solucionen pronto...
Hola Ebu,
¿Encontraste una solución para este problema? Estoy enfrentando algo similar con la construcción/despliegue de cds.
contacto@primeinstitute.com
(+51) 1641 9379
(+57) 1489 6964
© 2024 Copyright. Todos los derechos reservados.
Desarrollado por Prime Institute