-
Notifications
You must be signed in to change notification settings - Fork 0
1. Local Development π©βπ»
To develop this app copy .env.example
to .env
file and populate:
SLACK_SIGNING_SECRET=
SLACK_OAUTH_TOKEN=
DB_HOST=
DB_USER=
DB_PASSWORD=
ECR_URL=[not required for local development]
SECRET_KEY_BASE=[not required for local development]
Navigate to api.slack.com/apps. Here you should be able to see the CloudOpsBot Slack App. (If you do not you are not a designated Collaborator, contact a member of the team to be added).
-
SLACK_SIGNING_SECRET
is listed under App Credentials > 'Signing Secret' -
SLACK_OAUTH_TOKEN
is under OAuth & Permissions > 'Bot User OAuth Token'
The DB_*
variables are for local development and you can set these to whatever you please.
-
DB_HOST
+DB_PASSWORD
+DB_USER
-
ECR_URL
+SECRET_KEY_BASE
are not required for local development for information on gathering these please see the Remote Deployment guide.
You will see Failure/Error: hex_hash = OpenSSL::HMAC.hexdigest(digest, signing_secret, sig_basestring)
when running RSpec if the file is not present.
-
make build
- Builds the container. -
make start-db
- Starts the database container. -
make db-setup
- Initialise the database. -
make migrate
- Runs the database migration post db-setup. -
make serve
- Serve the Application. -
make run
- Points to make serve. -
make test
- Run all RSpec tests. -
make stop
- Stop the application. -
make deploy
- Upgrade the helm chart.
01110111 01101000 01111001 00100000 01100001 01110010 01100101 00100000 01111001 01101111 01110101 00100000 01110010 01100101 01100001 01100100 01101001 01101110 01100111 00100000 01110100 01101000 01101001 01110011 00111111