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
# Deploy through the IBM Cloud Functions console user interface
2
+
3
+
* Create a Trigger
4
+
Click on `Create Trigger` then choose `Cloudant`. At the **Cloudant Instance** section, choose to "Input your own credentials". Enter your Cloudant's **Username**, **Password**, **Host**. Enter `images` as your **Database** if you have created that name of the database at the previous step. Name the Trigger "update-trigger".
5
+
6
+

7
+
8
+
* Then click on `Add +` on the **Connected Actions section** then choose `Create Action` with a `Node.js 8` as the **Runtime**. Name the action "update-document-with-watson".
9
+
10
+

11
+
12
+

13
+
14
+
* Then click on the action and copy and paste the code in [`actions/updateDocumentWithWatson.js`](actions/updateDocumentWithWatson.js) to the editor in the browser.
15
+
16
+

17
+
18
+

19
+
20
+
* Then go to the `Parameters` section and add these parameters with the values of your own.
21
+
22
+

23
+
24
+
You may now proceed to [Step 4 in the main README](README.md#4-launch-application)
Copy file name to clipboardExpand all lines: README.md
+73-2Lines changed: 73 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,15 +59,26 @@ Create a [**Cloudant**](https://console.bluemix.net/catalog/services/cloudant) i
59
59
Create a [Watson Visual Recognition](https://console.bluemix.net/catalog/services/visual-recognition) instance.
60
60
* Copy the API Key in the Credentials section and paste it in the `local.env` file in the value of `WATSON_VISUAL_APIKEY`
61
61
62
-
### 3. Create Cloud Functions
62
+
### 3. Deploy Cloud Functions
63
+
> Choose one of the deployment methods
63
64
64
-
Make sure you have the right environment variables in the `local.env` file. Export them in your terminal then deploy the Cloud Functions using `wskdeploy`:
65
+
## Deploy through the IBM Cloud Functions console user interface
66
+
67
+
Choose ["Start Creating"](https://console.bluemix.net/openwhisk/create) in the IBM Cloud Functions Dashboard. [Then proceed to this deployment instructions using the UI](README-Deploy-UI.md).
68
+
69
+
You can also deploy them directly from the CLI by following the steps in the next section.
70
+
71
+
## Deploy using the wskdeploy command line tool
72
+
73
+
Make sure you have the right environment variables in the `local.env` file. Export them in your terminal then deploy the Cloud Functions using `wskdeploy`. This uses the `manifest.yaml` file in this root directory.
65
74
66
75
```
67
76
$ source local.env
68
77
$ wskdeploy
69
78
```
70
79
80
+
> You may want to undeploy them later with `wskdeploy undeploy`
81
+
71
82
### 4. Launch Application
72
83
73
84
Configure `web/scripts/upload.js`. Modify the lines for your Cloudant credentials.
@@ -91,6 +102,66 @@ $ npm start
91
102
92
103

93
104
105
+
# Alternative Deployment Methods
106
+
107
+
### Deploy manually with the `ibmcloud wsk` command line tool
108
+
109
+
This approach shows you how to deploy individual the packages, actions, triggers, and rules with CLI commands. It helps you understand and control the underlying deployment artifacts.
0 commit comments