invinst / CPDBv2_backend

backend for CPDP.co
https://beta.CPDP.co
Apache License 2.0
29 stars 3 forks source link

CPDP API

Table of contents

Development

Getting Started

Tests

CircleCi

Environment Variables

Deployment

Deployment should be almost automatic depending on which branch you pushed.

Staging deployment is completely automated but production deployment require your approval (to proceed) between django_migrate step and rebuild_index step so that you have the chance to run a command that alter data such as cache_data.

If you want to see each step, look at .circleci/config.yml.

Kubernetes

Setup production/beta/staging

  1. git secret reveal
  2. bin/initialize_kubernetes_cluster.sh - again only run this when cluster is newly created.
  3. bin/initialize_kubernetes_namespace.sh.

Setup cronjob on staging, beta or production

Run Django command on staging, beta or production

API Docs

Development guides