This repository has been archived by the owner on Mar 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix missing var in CF upgrade script and remove login
Removing the login makes it easier to use e.g. SSO-only foundations. Also includes the file rename suggested by @mamachenko.
- Loading branch information
Showing
5 changed files
with
15 additions
and
10 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 |
---|---|---|
|
@@ -37,7 +37,7 @@ So you're ready to set Postfacto up, choose names for your web and API apps. We' | |
1. Run the PCF deployment script from the `pcf` directory: | ||
|
||
```bash | ||
./deploy.sh <web-app-name> <api-app-name> <cf-api-endpoint> <pcf-url> | ||
./deploy.sh <web-app-name> <api-app-name> <pcf-url> | ||
``` | ||
1. Log in to the admin dashboard (email: `[email protected]` and password: `password`) to check everything has worked at `api-app-name.{{pcf-url}}/admin` | ||
1. Create a retro for yourself by clicking on 'Retros' and the 'New Retro' | ||
|
@@ -48,7 +48,7 @@ So you're ready to set Postfacto up, choose names for your web and API apps. We' | |
|
||
1. Presuming the steps in the Initial deployment section have been completed, run the upgrade script from the `pcf` directory: | ||
```bash | ||
./upgrade.sh <web-app-name> <api-app-name> | ||
./upgrade.sh <web-app-name> <api-app-name> <pcf-url> | ||
``` | ||
|
||
|
||
|
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 |
---|---|---|
|
@@ -4,16 +4,17 @@ set -e | |
|
||
WEB_HOST=$1 | ||
API_HOST=$2 | ||
API_ENDPOINT=${3:-https://api.run.pivotal.io} | ||
APP_DOMAIN=${4:-cfapps.io} | ||
APP_DOMAIN=${3:-cfapps.io} | ||
SESSION_TIME=${SESSION_TIME:-'""'} | ||
|
||
# The directory in which this script is located | ||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" | ||
ASSETS_DIR="$SCRIPT_DIR"/assets | ||
CONFIG_DIR="$SCRIPT_DIR"/config | ||
|
||
cf login -a "${API_ENDPOINT}" | ||
cf target \ | ||
|| (echo 'You need to have the CF CLI installed and be logged in' \ | ||
&& exit 1) | ||
|
||
cf push -f "$CONFIG_DIR"/manifest-api.yml -p "$ASSETS_DIR"/api --var api-app-name=$API_HOST --var web-app-name=$WEB_HOST --var pcf-url=${APP_DOMAIN} --var session-time=$SESSION_TIME | ||
cf run-task $API_HOST '[email protected] ADMIN_PASSWORD=password rake admin:create_user' | ||
|
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
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 |
---|---|---|
|
@@ -49,3 +49,6 @@ Contact: [email protected] | |
|
||
Engineer: Mike Kenyon | ||
Contact: [email protected] | ||
|
||
Engineer: Max Brauer | ||
Contact: github.com/mamachanko |
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