-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#12048] Add SQL configuration into build.properties and build-dev.properties #12917
Merged
NicolasCwy
merged 5 commits into
TEAMMATES:master
from
FergusMok:add-production-postgres-config
Mar 24, 2024
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
01a95d1
Add production config
FergusMok a451ec7
Remove forgotten host and password
FergusMok bf59b3e
Fix lint
FergusMok 309a710
Merge branch 'master' into add-production-postgres-config
FergusMok c078282
Merge branch 'master' into add-production-postgres-config
ziqing26 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,13 @@ app.frontend.url = http\://localhost:4200 | |
# This is the port to connect with local Datastore emulator. | ||
app.localdatastore.port = 8484 | ||
|
||
# Configurations for postgres | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe can add more explanation here on what values these fields should be set to (e.g. These correspond to the postgres instance details in the docker image and no change required etc) |
||
app.postgres.host=localhost | ||
app.postgres.port=5432 | ||
app.postgres.databasename=teammates | ||
app.postgres.username=teammates | ||
app.postgres.password=teammates | ||
|
||
# This indicates whether task queues are active (e.g. items added to task queue will be queued for execution). | ||
# This flag is only used during development mode; in production, task queue will always be active. | ||
# In addition, during development mode, there is no "queueing", i.e. all tasks will be immediately executed. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can standardise the property to either not be prefixed by "app-" (like here) or prefix the property with "app-" like in your
src/main/resources/build-dev.template.properties
On a side note would you know what "app-" is? I'm wondering if it means its a property of GAE, else we probably drop the "app" from postgres attributes since its on Cloud SQL
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree the lack of standardization is quite strange too (I flip flopped between both a few times)
For the variable name, I've prefixed without "APP" to be more in-line with other variables for other services (E.g
EMAIL_SENDEREMAIL
,MAILGUN_APIKEY
). The only variables with "APP" prefix seem to for truly "application" details, likeAPP_FRONTEND_URL
,APP_ADMINS
.For the property prefix, every single property has the 'app' prefix. I believe it's a matter of standardization only, and it doesn't contribute to functionality.
Since it affects many other variables, should we handle this in a separate PR?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@NicolasCwy Maybe can open an new issue (which can be labelled as good first issue) for this? Let's merge this in first.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup was just thinking of changing this one property, but I'll create an issue anyway