Openverse is a search engine for openly-licensed media. This monorepo includes all application code.
Update documentation of `just` recipes
Dhruv Bhanushali383595aae2f8
diff --git a/api/Dockerfile b/api/Dockerfileindex 0912075fc..f0e553aac 100644--- a/api/Dockerfile+++ b/api/Dockerfile@@ -39,7 +39,7 @@ RUN pipenv install --system --deploy --dev########## This target assumes that the build host has run `manage.py collectstatic`-# `just collectstatic` is provided as a convenient alias for running it the expected way+# `just api/collectstatic` is provided as a convenient alias for running it the expected wayFROM nginx:1.23.2-alpine as nginxdiff --git a/api/README.md b/api/README.mdindex 06bc03143..ef19616eb 100644--- a/api/README.md+++ b/api/README.md@@ -8,7 +8,7 @@ The API has two sets of documentation.- can be seen locally by- running the following recipe:```bash- just sphinx-live+ just api/sphinx-live```- visiting the `https://localhost:50230/` endpoint- contain more details on how to contribute to the API projectdiff --git a/api/docs/guides/https.md b/api/docs/guides/https.mdindex bd0592a19..93e980b7e 100644--- a/api/docs/guides/https.md+++ b/api/docs/guides/https.md@@ -5,7 +5,7 @@ that serves the API over `https` by proxying to the Gunicorn server which servesover `http`.This proxy uses certificates from the `nginx/certs/` directory. These-certificates can be generated using `mkcert` with the `just cert` command.+certificates can be generated using `mkcert` with the `just nginx/cert` command.Additionally, to test with the dev hostname `dev.openverse.test`, add thefollowing line to your hosts file.diff --git a/api/docs/guides/quickstart.md b/api/docs/guides/quickstart.mdindex 0bd318748..7466c65f7 100644--- a/api/docs/guides/quickstart.md+++ b/api/docs/guides/quickstart.md@@ -34,7 +34,7 @@ utils to macOS. `timeout` from the package is required.to serve the API over `https`.```bash- just cert+ just nginx/cert```4. From the monorepo root, bring up the Docker Compose system. Docker Compose@@ -57,7 +57,7 @@ utils to macOS. `timeout` from the package is required.7. Make an API request using cURL. You should receive a JSON response.```bash- just stats+ just api/stats```Piping the response through a pretty-printer like@@ -65,7 +65,7 @@ utils to macOS. `timeout` from the package is required.following.```bash- just stats | jq '.[0]'+ just api/stats | jq '.[0]'``````jsondiff --git a/api/docs/guides/run.md b/api/docs/guides/run.mdindex 2a6953d73..0ff4df72c 100644--- a/api/docs/guides/run.md+++ b/api/docs/guides/run.md@@ -29,7 +29,7 @@ To run the API inside Docker, follow the instructions in the3. Start the Django dev server.```bash- just dj runserver+ just api/dj runserver```## Django admindiff --git a/api/docs/guides/test.md b/api/docs/guides/test.mdindex c3412befb..9ae6805bd 100644--- a/api/docs/guides/test.md+++ b/api/docs/guides/test.md@@ -12,5 +12,5 @@2. Run the tests in an interactive TTY connected to a `web` container.```bash- just api-test+ just api/test```diff --git a/ingestion_server/README.md b/ingestion_server/README.mdindex 9bde58b0f..5c101a3c7 100644--- a/ingestion_server/README.md+++ b/ingestion_server/README.md@@ -62,9 +62,9 @@ rows pulled from the upstream catalog database. If the server is running in an### Integration Tests-The integration tests can be run using `just ing-testlocal`. Note that if a-`.env` file exists in the folder you're running `just` from, it may interfere-with the integration test variables and cause unexpected failures.+The integration tests can be run using `just ingestion_server/test-local`. Note+that if an `.env` file exists in the folder you're running `just` from, it may+interfere with the integration test variables and cause unexpected failures.### Making requests