-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vijay
committed
Jul 6, 2016
1 parent
29de353
commit eaddeb3
Showing
2 changed files
with
18 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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 | ||
|
@@ -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) | ||
|
||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.