Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Simplify and reorder parameters to `catalog/pgcli` recipe (#2023)
Madison Swain-Bowdene78b0bc8c1a0
diff --git a/api/justfile b/api/justfileindex e40f28192..c5e1afa77 100644--- a/api/justfile+++ b/api/justfile@@ -79,8 +79,8 @@ stats media="images" host="localhost:50280":just _curl-get "{{ media }}/stats/" {{ host }}# Launch a `pgcli` shell in the web container-pgcli db_host="db" db_port="5432" db_name="openledger" db_user="deploy" db_password="deploy": up- env DC_USER="opener" just ../exec web pgcli postgresql://{{ db_user }}:{{ db_password }}@{{ db_host }}:{{ db_port }}/{{ db_name }}+pgcli db_user_pass="deploy" db_name="openledger": up+ env DC_USER="opener" just ../_pgcli web {{ db_user_pass }} {{ db_name }} db########################## Django administration #diff --git a/catalog/justfile b/catalog/justfileindex 4daf04650..9689c2267 100644--- a/catalog/justfile+++ b/catalog/justfile@@ -85,8 +85,8 @@ ipython: up-depsbash -c \'ipython\'# Launch a `pgcli` shell in the PostgreSQL container-pgcli db_host="upstream_db" db_port="5432" db_name="openledger" db_user="airflow" db_password="airflow": up- just ../exec upstream_db pgcli postgresql://{{ db_user }}:{{ db_password }}@{{ db_host }}:{{ db_port }}/{{ db_name }}+pgcli db_user_pass="deploy" db_name="openledger": up+ just ../_pgcli upstream_db {{ db_user_pass }} {{ db_name }} upstream_db########## Tests #diff --git a/justfile b/justfileindex 098dbc106..c516ed5b6 100644--- a/justfile+++ b/justfile@@ -206,6 +206,10 @@ exec +args:run +args:just dc run -u {{ env_var_or_default("DC_USER", "root") }} {{ EXEC_DEFAULTS }} "{{ args }}"+# Execute pgcli against one of the database instances+_pgcli container db_user_pass db_name db_host db_port="5432":+ just exec {{ container }} pgcli postgresql://{{ db_user_pass }}:{{ db_user_pass }}@{{ db_host }}:{{ db_port }}/{{ db_name }}+######### Misc #########