From bccc61a42d444afaedd8dc77b5a28c64d8b4274c Mon Sep 17 00:00:00 2001 From: Rene Jeglinsky Date: Wed, 18 Jun 2025 10:57:43 +0200 Subject: [PATCH] use cds up in deploy section --- guides/deployment/microservices.md | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/guides/deployment/microservices.md b/guides/deployment/microservices.md index 75181e7cc..49b77e476 100644 --- a/guides/deployment/microservices.md +++ b/guides/deployment/microservices.md @@ -743,32 +743,16 @@ Additionally, the welcomeFile is important for deployed Vue UIs as they obtain C ### Deploy -To build, deploy, and undeploy easily, add these `npm` scripts: +Before deploying you need to log in to Cloud Foundry: `cf login --sso` -::: code-group -```json [package.json] - "scripts": { - "build": "mbt build -t gen --mtar mta.tar", // [!code ++] - "deploy": "cf deploy gen/mta.tar", // [!code ++] - "undeploy": "cf undeploy capire.samples --delete-services --delete-service-keys" // [!code ++] - } -``` -::: - -Before deploying you need to log in to Cloud Foundry. - -Build the apps locally: +Start the deployment and build process: -```shell -npm run build ``` - -Deploy the built artifacts to Cloud Foundry: - -```shell -npm run deploy +cds up ``` +[Learn more about `cds up`.](./to-cf#build-and-deploy){.learn-more} + Once the app is deployed, you can get the url of the approuter via ```shell