netreconlab / parse-hipaa

HIPAA & GDPR compliant ready parse-server with postgres/mongo, parse-hipaa-dashboard. Compatible with ParseCareKit
MIT License
99 stars 43 forks source link

feat: Impove the wait for postgres script #77

Closed aria1991 closed 1 year ago

aria1991 commented 1 year ago

I made some modifications:

— Added a timeout variable and a start_time variable to keep track of the elapsed time. I also added an if statement that checks if the elapsed time has exceeded the timeout value. If it has, the script exits with an error message.

— Replaced the hardcoded database username and password with environment variables.

— Added the set -o pipefail command to ensure that the script fails if any command in a pipeline fails. I also added some error messages to make it easier to diagnose problems.

cbaker6 commented 1 year ago

Thanks for the updates to the Postgres script! I’ll test these shortly.

Can you remove the codeql files? Those can end up producing many errors that will go unfixed as I don’t have a linter in this project

aria1991 commented 1 year ago

Thanks for the updates to the Postgres script! I’ll test these shortly.

Can you remove the codeql files? Those can end up producing many errors that will go unfixed as I don’t have a linter in this project

Hi @cbaker6. It's done!

cbaker6 commented 1 year ago

I made some changes so this doesn't break the docker compose files