You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- border -->
59
+
57
60
58
61
59
-
[DONE]
60
-
[ACCORDION-END]
62
+
### Run your app with SAP HANA
61
63
62
-
[ACCORDION-BEGIN [Step 2: ](Run your app with SAP HANA)]
63
64
64
65
65
66
1. In the **Run Configurations** view, open the run configuration you previously created and make sure that the dependencies have changed and that you can see a dependency to `db(hana)`.
66
67
67
-
!
68
+
<!-- border -->
68
69
69
-
The **Run Configuration** view allows you to bind to the specific SAP HANA instance with which you want your application to run. It will automatically install all the required dependencies and offer you to deploy your data model. (It actually generates a deploy task that you can run at any given time.) Moreover, it generates a connection in the **SQLTOOLS** view, so you can instantly check the data in your database.
70
+
The **Run Configuration** view allows you to bind to the specific SAP HANA instance with which you want your application to run. It will automatically install all the required dependencies and offer you to deploy your data model. (It actually generates a deploy task that you can run at any given time.)
70
71
71
72
2. Click the **Bind** icon to the right of the `db` dependency. A list of SAP HANA service instances from your space is presented (you may need to log into Cloud Foundry).
72
73
73
-
!
74
+
<!-- border -->
74
75
75
76
3. Select the SAP HANA service instance to which you want to bind the dependency.
76
77
77
-
!
78
+
<!-- border -->
78
79
79
80
The bind action runs and the dependency is now bound. You will get notifications regarding which tasks are run, and regarding the creation of a new SQL tools connection .
80
81
81
82
4. After a few moments, a dialog box asking you to deploy your data model is displayed. Choose **Yes**.
82
83
83
84
The deployment task runs. Make sure it completes successfully.
84
85
85
-
5. Open the **SQLTOOLS** view.
86
+
5. Open the **SAP HANA database explorer**.
86
87
87
88
6. Click on the connection created for your SAP HANA instance.
88
89
89
90
7. Open the `Authors` tables, and click on the magnifier glass icon next to it.
90
91
91
-
!
92
+
<!-- border -->
92
93
93
94
8. In the editor tab that opens, browse the table data and make sure it is correct.
94
95
95
96
9. Open the **Run Configurations** view.
96
97
97
98
9. Click the green arrow on the right of the configuration name to run the application.
98
99
99
-
!
100
+
<!-- border -->
100
101
101
102
10. When prompted, click **Open in new tab**.
102
103
@@ -105,10 +106,10 @@ The result should look as follows:
105
106
11. Stop the application by clicking **Stop** in the Debug pane.
106
107
107
108
108
-
[VALIDATE_7]
109
-
[ACCORDION-END]
110
109
111
-
[ACCORDION-BEGIN [Step 3: ](Deploy your application to Cloud Foundry)]
110
+
111
+
### Deploy your application to Cloud Foundry
112
+
112
113
113
114
1. From the terminal on the bookshop folder, run `cds add mta`.
114
115
This adds an `mta.yaml` file to the root of your application.
@@ -117,19 +118,17 @@ This adds an `mta.yaml` file to the root of your application.
117
118
118
119
2. Right-click the `mta.yaml` file and choose **Build MTA Project**.
119
120
120
-
!
121
+
<!-- border -->
121
122
122
123
A new folder for `mta_archives` is created containing the new `mtar` file.
123
124
124
125
3. Right-click the `mtar` file and choose **Deploy MTA Archive**.
125
126
126
-
!
127
+
<!-- border -->
127
128
128
129
Once the task is complete, your application should be available in your Cloud Foundry space.
129
130
To access your application, go to your space in the SAP Cloud Platform cockpit and select **Applications** from the side menu.
0 commit comments