You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the above code, we can see, that the databases created are all named as ledokku, which itself is not an error prone variable assignment => but we can be more explicit in our naming conventions.
My Suggestions
Let's make our database name more explicit and add some logic to check to verify the duplication of databases. It would be something like this:
Changing Redis db name to: ledokku-redis-db
Changing Postgress db name to: ledokku-pg-db
and finally, during the installation process, let's add some logic to check whether there is any name collision => If there is a name collision we will prompt the user that we are about to delete the old databases and install new ones.
Reason => In case of installation failure(in the middle), not everyone might be familiar with dokk-cli to troubleshoot things.
@pradel@Akirtovskis What do you say? Shall I start working on it by creating a template PR?
The text was updated successfully, but these errors were encountered:
ledokku/ledokku-bootstrap.sh
Lines 228 to 233 in eb8eaf7
Issue Showcase
In the above code, we can see, that the databases created are all named as
ledokku
, which itself is not an error prone variable assignment => but we can be more explicit in our naming conventions.My Suggestions
Let's make our database name more explicit and add some logic to check to verify the duplication of databases. It would be something like this:
ledokku-redis-db
ledokku-pg-db
and finally, during the installation process, let's add some logic to check whether there is any name collision => If there is a name collision we will prompt the user that we are about to delete the old databases and install new ones.
@pradel @Akirtovskis What do you say? Shall I start working on it by creating a template PR?
The text was updated successfully, but these errors were encountered: