So you're ready to set Postfacto up, choose names for your web and API apps. We'll refer to these names as api-app-name
and web-app-name
from now on.
If you're deploying to Pivotal Web Services, you can check they are available by making sure there is an error when visiting your-chosen-name.cfapps.io
.
Pivotal Web Services provides a hosted version of Pivotal's Cloud Foundry platform and is probably the easiest place to get Postfacto up and running. You can use Concourse to deploy and keep your instance up to date using the example pipeline in deployments/pws
or if you'd prefer you can set it up manually using the steps below:
-
Sign up for a PWS account, install the CF CLI and set yourself up with an organization and space by following the instructions here
-
Once logged in to PWS, add a database and a Redis service instance to your space from the Marketplace. We recommend the free plans of ElephantSQL and Redis Cloud respectively for this. Name these services
postfacto-db
andpostfacto-redis
-
Download and unzip the latest release source code here.
-
In
postfacto/deployment/pws/config/manifest-api.yml
, change the{{api-app-name}}
and{{web-app-name}}
to be yourapi-app-name
andweb-app-name
-
In
postfacto/deployment/pws/config/manifest-web.yml
, change the{{web-app-name}}
to be yourweb-app-name
-
In
postfacto/deployment/pws/config/config.js
, change the{{api-app-name}}
to be yourapi-app-name
-
In
postfacto/deployment/pws/deploy.sh
, change the{{api-app-name}}
to be yourapi-app-name
-
Run the PWS deployment script from the
postfacto
directory:
deployment/pws/deploy.sh
- Log in to the admin dashboard (email:
[email protected]
and password:password
) to check everything has worked atapi-app-name.cfapps.io/admin
- Create a retro for yourself by clicking on 'Retros' and the 'New Retro'
- Log in to your retro at
web-app-name.cfapps.io/retros/you-retro-slug
- Share the URL and password with your team and then run a retro!
You can use Concourse to deploy and keep your instance up to date using the example pipeline in deployments/pcf
or if you'd prefer you can set it up manually using the steps below:
-
Set yourself up with an organization and space in your PCF to deploy your Postfacto to.
-
Take note of your PCF url, going forward referred to as
pcf-url
-
Add a database (Postgres or Mysql) and a Redis service instance to your space from the Marketplace. Name these services
postfacto-db
andpostfacto-redis
. -
Download and unzip the latest release source code here.
-
In
postfacto/deployment/pcf/config/manifest-api.yml
, change the{{api-app-name}}
,{{web-app-name}}
,{{pcf-url}}
to be yourapi-app-name
,web-app-name
andpcf-url
-
In
postfacto/deployment/pcf/config/manifest-web.yml
, change the{{web-app-name}}
to be yourweb-app-name
-
In
postfacto/deployment/pcf/config/config.js
, change the{{api-app-name}}
,{{web-app-name}}
, and{{pcf-url}}
to be yourapi-app-name
,web-app-name
, andpcf-url
-
In
postfacto/deployment/pcf/deploy.sh
, change the{{api-app-name}}
to be yourapi-app-name
-
Run the PCF deployment script from the
postfacto
directory:
deployment/pcf/deploy.sh
- Log in to the admin dashboard (email:
[email protected]
and password:password
) to check everything has worked atapi-app-name.{{pcf-url}}/admin
- Create a retro for yourself by clicking on 'Retros' and the 'New Retro'
- Log in to your retro at
web-app-name.{{pcf-url}}/retros/you-retro-slug
- Share the URL and password with your team and then run a retro!
In order for users to sign-up and create their own retros using the web UI, Postfacto needs Google OAuth setup.
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
api-app-name.cfapps.io/admin
or api-app-name.{{pcf-url}}/admin
.
- Go to Google Cloud Console and create a new project
- Go to APIs & Services > Credentials > Create Credentials > OAuth client ID > Web application
- Choose a name for your app
- In
Authorized JavaScript Origins
, set it to the public URL of yourweb-app-name
. For example: if deploying to PWS, your public URL will behttps://{{web-app-name}}.cfapps.io
- You can leave redirect blank
- Take note of your
client-id
that is generated - In additional to the steps required for deploying to PWS, and PCF:
- For PWS, in
postfacto/deployment/pws/config/config.js
, add the line"google_oauth_client_id": {{client-id}}
to the config object, and change{{client-id}}
to your generated Google OAuthclient-id
- For PCF, in
postfacto/deployment/pcf/config/config.js
, add the line"google_oauth_client_id": {{client-id}}
to the config object, and change{{client-id}}
to your generated Google OAuthclient-id
- For PWS, in