Skip to content

Microservices Guide: use cds up in deploy section #1925

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 5 additions & 21 deletions guides/deployment/microservices.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading