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