Closed TimothyXu closed 2 years ago
No PR attached but this is done: dev instance running at: https://nyu-shopcart-service-sp2203-dev.us-south.cf.appdomain.cloud Have set up CI/CD to automatically build test and deploy to dev instance whenever main branch is updated. Production instance which will use https://nyu-shopcart-service-sp2203.us-south.cf.appdomain.cloud are to be set up in the last 2 stages of CI/CD in separate stories
As a developer I need to use Agile/Devops including using an automated CI/CD pipeline So that I don't waste time on things that's not writing code
Details and Assumptions
Per Prof's post on Slack: If you are getting a Database Connection error in your Continuous Delivery Pipeline Build Stage even though you set the VCAP_SERVICES environment variable correctly you need to read this. It's caused by the difference between the code in lab-bluemix-cf and lab-flask-tdd which everyone started from. Solution: Instead of using VCA_SERVICES as the environment variable in the build stage, you must use DATABASE_URI set to the "url" of your ElephantSQL database service because while the production code is looking for VCAP_SERVICES the test cases are looking for DATABASE_URI . (i.e., test_models.py and test_routes.py set the database connection via DATABASE_URI so you need to provide that during the build/test stage.
Acceptance Criteria