Please add a VERSION=0.9.A to buildspec.yml in the env: variables: section.
Then add a /healthCheck route/file that will do and return the following as JSON:
"Version: MM.mm.pp"
** Whatever is in the environment variable
"Database time: (ISO 8601 Date)"
** run a SELECT CURRENT_TIME() through a database connection, this tests connectivity to the database -- this call should have lots of error catching because...
"Errors: ["code #1" -> "error message #1", ...]"
** Collecting any error messages that were returned in trying to get a DB connection
Ideally we would also add a "version_log" table to the database and any time the application starts/restarts it looks to see if the version has not been entered into that table and adds it along with the date/time. I don't know where this could be intergrated into the Laravel stack though.
Please add a VERSION=0.9.A to
buildspec.yml
in the env: variables: section.Then add a /healthCheck route/file that will do and return the following as JSON:
** Whatever is in the environment variable
SELECT CURRENT_TIME()
through a database connection, this tests connectivity to the database -- this call should have lots of error catching because...Ideally we would also add a "version_log" table to the database and any time the application starts/restarts it looks to see if the version has not been entered into that table and adds it along with the date/time. I don't know where this could be intergrated into the Laravel stack though.