Skip to content

Commit

Permalink
Updating multi tier work flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijay committed Jul 6, 2016
1 parent 29de353 commit eaddeb3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions labs/shipped-multi-tier/3.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ You are now ready to deploy *Postgres*, *vote-api*, and *vote-ui* services. The

1. Select **Postgres** and the environment (Test), click **Deploy Build**.

1. As we need connection string to connect our API to Postgres DB, So we need to copy the environment variable name "HOST_POSTGRES" (naming convention "HOST_"$servicename) of Postgress, which you need to set for vote-api and vote-ui.
1. As we need connection string to connect our API to Postgres DB, So we need to copy the environment variable name "HOST_POSTGRES" (naming convention "HOST_"$servicename) of Postgress, which you need to set for vote-api and vote-ui.

2. Click **Settings**.
3. Scroll down to the **Deployment Configurations** section.
Expand All @@ -34,35 +34,34 @@ You are now ready to deploy *Postgres*, *vote-api*, and *vote-ui* services. The

![](posts/files/shipped-multi-tier/assets/vote-api.png)

1. Click the vote-api icon, then **Settings**.
2. Click the vote-api icon, then **Settings**.

3. Scroll down to the **Deployment Configurations** section.
4. Click **Add New variable**, and enter the key value pair.

In addition to the variables copied from Postgres, you also need to set the API endpoint so the UI application will read the same variables.

**Note**: Do not change the key and value.

4. Find **HOST_POSTGRES_SINGLE** environment variable.

Replace the existing value with the value that we copied from postgress environment settings.

The following example shows the vote-api variables.

![](posts/files/shipped-multi-tier/assets/vote-api-cfg.png)


<table><tr>
<td>Key</td>
<td>Value</td>
</tr>
<tr>
<td>CONNECTION_STRING</td>
<td>postgres:postgres@shipped-tx3-worker-004:4005/postgresDB</td>
</tr>
<td>Key</td>
<td>Value</td>
</tr>
<tr>
<td>HOST_POSTGRES_SINGLE</td>
<td>postgres:[email protected]:4001/postgresDB</td>
</tr>
</table>

</table>
5. Click **Save**.

1. Click **Save**.
6. Click **Back to Environments**.

1. Click **Back to Environments**.
2. Click **Deploy Build**.
7. Click **Deploy Build**.


### Deploy vote-ui
Expand All @@ -77,7 +76,7 @@ You are now ready to deploy *Postgres*, *vote-api*, and *vote-ui* services. The

![](posts/files/shipped-multi-tier/assets/vote-ui-deploy-success.png)

The following screen is displayed.
The following screen is displayed.

![](posts/files/shipped-multi-tier/assets/15.PNG)

Expand Down
Binary file modified labs/shipped-multi-tier/assets/vote-api-cfg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit eaddeb3

Please sign in to comment.