Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

EnvironmentBackendDomainNoteSample URL
ProductionOn-lineon-prod.diaper.cfThis points to AWS under Cornell contract
i.e. 35.168.248.57
https://on-prod.diaper.cf:5001/api/version
TestOn-lineon-test.diaper.cf(Not set up yet)
This points to public AWS (under Tan's account)
i.e. 3.232.82.82
https://on-test.diaper.cf:5001/api/version
     
ProductionOff-lineoff-prod.diaper.cf(Not set up yet)
This points to AWS under Cornell contract
 
TestOff-lineoff-test.diaper.cf(Not set up yet)
This points to public AWS (under Tan's account)
 

For API callers (i.e. frontend web/app)

Choose the domain accordingly, prepend it with http or https, and append it with port number and path.e.g. https://on-prod.diaper.cf:5001/api/version

SSL Certificate for https

...

This will allow flask and docker to access the cert files.

 

Specify which yml file to use when launching docker on production

...

and test

...

environment

A separate Separate docker-compose config file files named docker-compose-prod.yml is and docker-compose-test.yml are created.

Since only production ( and test ) environment will use this cert. When launching docker, must specify this yml file.

Command Line

Code Block
// For production at 35.168.248.57
docker-compose -f docker-compose-prod.yml up -d

// For test at 3.232.82.82
docker-compose -f docker-compose-test.yml up -d