Skip to content

Commit

Permalink
Update Single value Env variable in multi tier.
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijay committed Jul 1, 2016
1 parent f000b7f commit f4b0447
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 19 deletions.
23 changes: 4 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. Copy the environment variables 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 Down Expand Up @@ -53,25 +53,10 @@ You are now ready to deploy *Postgres*, *vote-api*, and *vote-ui* services. The
<td>Value</td>
</tr>
<tr>
<td>SEED_PORT</td>
<td>4001</td>
</tr>
<tr>
<td>HOST_VOTE_API</td>
<td>http://test--multitierapp--vote-api--254b61.gce.shipped-cisco.com</td>
</tr>
<tr>
<td>HOST_VOTE_UI</td>
<td>http://test--multitierapp--vote-ui--247fa6.gce.shipped-cisco.com</td>
</tr>
<tr>
<td>SEED_HOST</td>
<td>test--multitierapp--postgres--d1329f-0.service.consul</td>
</tr>
<tr>
<td>HOST_POSTGRES</td>
<td>http://test--multitierapp--postgres--d1329f.gce.shipped-cisco.com</td>
<td>CONNECTION_STRING</td>
<td>postgres:postgres@shipped-tx3-worker-004:4005/postgresDB</td>
</tr>

</table>

1. Click **Save**.
Expand Down
Binary file modified labs/shipped-multi-tier/assets/postgres-settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 f4b0447

Please sign in to comment.