Skip to content
Merged
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