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
- Adds handling of ADMIN_EMAIL and ADMIN_PASSWORD env vars to deploy scripts
- Supersedes vmware-archive#368
- Documents HEROKU_REGION env var
- Documents issue identified in vmware-archive#346
Copy file name to clipboardExpand all lines: deployment/README.md
+48-18
Original file line number
Diff line number
Diff line change
@@ -1,8 +1,9 @@
1
1
# Deployment
2
2
3
-
1. Download and extract the latest package from the [releases page](https://github.com/pivotal/postfacto/releases)
3
+
1. Download and extract the latest `package.zip` from the [releases page](https://github.com/pivotal/postfacto/releases)
4
4
1. Choose a name for your app, we'll refer to this as `app-name` from now on
5
-
1.[Optional] Configure your deployment
5
+
1._[Strongly recommended]_ Choose an admin email and password to override the defaults (`[email protected]` and `password` respectively), we'll refer to these as `admin-email` and `admin-password` from now on
6
+
1._[Optional]_ Configure your deployment:
6
7
*[Add Google Auth](#allowing-users-to-create-retros)
7
8
*[Enable analytics](#enabling-analytics)
8
9
*[Increase the session timeout](#changing-session-timeout)
@@ -21,16 +22,16 @@
21
22
22
23
In order for users to sign-up and create their own retros using the web UI, Postfacto needs Google OAuth setup.
23
24
For deployments that do not want to setup Google OAuth, you will need to create your retros through the admin console of your server via
24
-
`<app-name>.cfapps.io/admin` or `<app-name>.<cf-url>/admin`.
25
+
`<app-name>.<cf-url>/admin`
25
26
26
27
1. Go to [Google Cloud Console](https://console.cloud.google.com) and
27
28
create a new project
28
29
1. Go to APIs & Services > Credentials > Create Credentials > OAuth client ID > Web application
29
30
1. Choose a name for your app
30
-
1. In `Authorized JavaScript Origins`, set it to the public URL of your `app-name`. For example: if deploying to Heroku, your public URL will be `https://<app-name>.herokuapp.com`.
31
+
1. In `Authorized JavaScript Origins`, set it to the public URL of your `app-name`. For example: if deploying to Heroku, your public URL will be `https://<app-name>.herokuapp.com`
31
32
1. You can leave redirect blank
32
33
1. Take note of your `client-id` that is generated
33
-
1. Add `"google_oauth_client_id": {{client-id}}` to the `config.js` for your installation.
34
+
1. Add `"google_oauth_client_id": {{client-id}}` to the `config.js` for your installation
34
35
35
36
### Enabling analytics
36
37
@@ -41,7 +42,7 @@ If you'd like to have your instance send analytics data to the Postfacto team so
41
42
You can customise this window with the `SESSION_TIME` env variable to the `env` on deploy. To set a session time of 1 hour for example:
42
43
43
44
```bash
44
-
SESSION_TIME=60 ./deploy <app-name>
45
+
SESSION_TIME=60 ./deploy.sh<app-name>
45
46
```
46
47
47
48
### Using TLS for database connections
@@ -77,19 +78,27 @@ More information about SSL modes can be found [here](https://www.postgresql.org/
77
78
### Removing Redis dependency
78
79
If you are on a **later version than 4.3.0** and using Postgres, Redis is no longer required. Instead set the environment variable `USE_POSTGRES_FOR_ACTION_CABLE=true` on deploy.
79
80
81
+
However, note that for larger retros the live websocket updates may stop working (see [#346](https://github.com/pivotal/postfacto/issues/346)) as the Postgres adapter has an 8kB payload limit.
82
+
80
83
## Tanzu Application Service
81
84
82
85
#### Initial deployment
83
86
84
-
1. Set yourself up with an organization and space in your TAS account to deploy Postfacto to.
85
-
1. Add a database (Postgres or Mysql) and a Redis service instance to your space from the Marketplace. Name these services `postfacto-db` and `postfacto-redis`.
86
-
1. Run the TAS deployment script from the `tas` directory:
87
+
1. Set yourself up with an organization and space in your TAS account to deploy Postfacto to
88
+
1. Add a database (Postgres or MySQL) and a Redis service instance to your space from the Marketplace. Name these services `postfacto-db` and `postfacto-redis`
89
+
1. Run the TAS deployment script from the `tas` directory, either:
or, to use the default admin credentials (`[email protected]` and `password`):
121
136
122
137
```bash
123
138
./deploy.sh <app-name>
124
139
```
140
+
125
141
1. Keep note of the application url output by the deployment script, going forward referred to as `tkg-url`
126
142
1. Log in to the admin dashboard at `<tkg-url>/admin` (email: `[email protected]`and password: `password`)
127
143
1. Create a retro for yourself by clicking on 'Retros' and then 'New Retro'
@@ -139,16 +155,22 @@ If you are on a **later version than 4.3.0** and using Postgres, Redis is no lon
139
155
140
156
#### Initial deployment
141
157
142
-
1. Set yourself up with an organization and space in your CF to deploy your Postfacto to.
158
+
1. Set yourself up with an organization and space in your CF to deploy your Postfacto to
143
159
1. Take note of your CF url, going forward referred to as `cf-url`
144
-
1. Add a database (Postgres or Mysql) and a Redis service instance to your space from the Marketplace. Name these services `postfacto-db` and `postfacto-redis`.
145
-
1. Run the CF deployment script from the `cf` directory:
160
+
1. Add a database (Postgres or Mysql) and a Redis service instance to your space from the Marketplace; name these services `postfacto-db` and `postfacto-redis`
161
+
1. Run the CF deployment script from the `cf` directory, either:
or, to use the default admin credentials (`[email protected]` and `password`):
146
168
147
169
```bash
148
170
./deploy.sh <app-name>
149
171
```
150
172
151
-
1. Log in to the Postfacto admin dashboard (email: `[email protected]`and password: `password`) to check everything has worked at `<app-name>.<cf-url>/admin`
173
+
1. Log in to the Postfacto admin dashboard to check everything has worked at `<app-name>.<cf-url>/admin`
152
174
1. Create a retro for yourself by clicking on 'Retros' and then 'New Retro'
153
175
1. Log in to your retro at `<app-name>.<cf-url>/retros/your-retro-slug`
154
176
1. Share the URL and password with your team and then run a retro!
@@ -173,13 +195,21 @@ If you are on a **later version than 4.3.0** and using Postgres, Redis is no lon
173
195
#### Initial deployment
174
196
175
197
1. Install the [Heroku CLI](https://devcenter.heroku.com/articles/heroku-cli)
176
-
1. Run the Heroku deployment script from the `heroku` directory:
198
+
1. Run the Heroku deployment script from the `heroku` directory, either:
or, to use the default admin credentials (`[email protected]` and `password`):
177
205
178
206
```bash
179
207
./deploy.sh <app-name>
180
208
```
181
209
182
-
1. Log in to the Postfacto admin dashboard (email: `[email protected]`and password: `password`) to check everything has worked at `<app-name>.herokuapp.com/admin`
210
+
If you want to deploy to the EU [region](https://devcenter.heroku.com/articles/regions), rather than the default US region, prefix the deploy command with `HEROKU_REGION=eu`
211
+
212
+
1. Log in to the Postfacto admin dashboard to check everything has worked at `<app-name>.herokuapp.com/admin`
183
213
1. Create a retro for yourself by clicking on 'Retros' and then 'New Retro'
184
214
1. Log in to your retro at `<app-name>.herokuapp.com/retros/your-retro-slug`
185
215
1. Share the URL and password with your team and then run a retro!
@@ -208,4 +238,4 @@ If you are on a **later version than 4.3.0** and using Postgres, Redis is no lon
208
238
1. Run the smoke test script from the root of the package directory:
0 commit comments