Skip to content

Commit

Permalink
revert: Remove package installation instructions from backend README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
drikusroor committed Dec 20, 2023
1 parent 1c16a52 commit 2cf1ecc
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,32 +88,6 @@ from .views import MyView

Check the client documentation for instructions for adding the view to the client.

## Install packages

If you want to install new packages, you can do so by adding the dependencies to:
* `requirements.in/base.txt` for packages that are needed in both *development* **and** *production*
* `requirements.in/dev.txt` for packages that are only needed in *development*
* `requirements.in/prod.txt` for packages that are only needed in *production*

Then, run the following `pip-compile` commands to generate the `requirements.txt` files:

```bash
# Install all packages for development
docker compose run --rm server pip-compile --output-file=requirements/dev.txt requirements.in/dev.txt

# Install all packages for production
docker compose run --rm server pip-compile --output-file=requirements/prod.txt requirements.in/prod.txt
```

Lastly, rebuild the server image:

```bash
docker compose build server

# or, if you want to run the server immediately
docker compose up server --build -d
```

## Troubleshooting

#### Bad request
Expand Down

0 comments on commit 2cf1ecc

Please sign in to comment.