Skip to content

Commit a2e2f62

Browse files
Microservices Guide: use cds up in deploy section (#1925)
1 parent 93c550b commit a2e2f62

1 file changed

Lines changed: 5 additions & 21 deletions

File tree

guides/deployment/microservices.md

Lines changed: 5 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -743,32 +743,16 @@ Additionally, the welcomeFile is important for deployed Vue UIs as they obtain C
743743

744744
### Deploy
745745

746-
To build, deploy, and undeploy easily, add these `npm` scripts:
746+
Before deploying you need to log in to Cloud Foundry: `cf login --sso`
747747

748-
::: code-group
749-
```json [package.json]
750-
"scripts": {
751-
"build": "mbt build -t gen --mtar mta.tar", // [!code ++]
752-
"deploy": "cf deploy gen/mta.tar", // [!code ++]
753-
"undeploy": "cf undeploy capire.samples --delete-services --delete-service-keys" // [!code ++]
754-
}
755-
```
756-
:::
757-
758-
Before deploying you need to log in to Cloud Foundry.
759-
760-
Build the apps locally:
748+
Start the deployment and build process:
761749

762-
```shell
763-
npm run build
764750
```
765-
766-
Deploy the built artifacts to Cloud Foundry:
767-
768-
```shell
769-
npm run deploy
751+
cds up
770752
```
771753

754+
[Learn more about `cds up`.](./to-cf#build-and-deploy){.learn-more}
755+
772756
Once the app is deployed, you can get the url of the approuter via
773757

774758
```shell

0 commit comments

Comments
 (0)