Changeset View
Changeset View
Standalone View
Standalone View
docs/internals/dev-environment.rst
- This file was moved from docs/dev-info.rst.
.. _swh-deposit-dev: | .. _swh-deposit-dev-env: | ||||
Hacking on swh-deposit | Running swh-deposit locally | ||||
====================== | =========================== | ||||
There are multiple modes to run and test the server locally: | There are multiple modes to run and test the server locally: | ||||
* development-like (automatic reloading when code changes) | * development-like (automatic reloading when code changes) | ||||
* production-like (no reloading) | * production-like (no reloading) | ||||
* integration tests (no side effects) | * integration tests (no side effects) | ||||
Except for the tests which are mostly side effects free (except for the | Except for the tests which are mostly side effects free (except for the | ||||
ardumont: That one i think should be reworked to make our docker dev stack appear...
(not for this diff… | |||||
Done Inline Actionssure vlorentz: sure | |||||
database access), the other modes will need some configuration files (up to 2) | database access), the other modes will need some configuration files (up to 2) | ||||
to run properly. | to run properly. | ||||
Database | Database | ||||
-------- | -------- | ||||
swh-deposit uses a database to store the state of a deposit. The default | swh-deposit uses a database to store the state of a deposit. The default | ||||
db is expected to be called swh-deposit-dev. | db is expected to be called swh-deposit-dev. | ||||
▲ Show 20 Lines • Show All 158 Lines • Show Last 20 Lines |
That one i think should be reworked to make our docker dev stack appear...
(not for this diff just to share my view on the subject)
That's how i started doing dev on it at first, now i'm relying a lot on tests for hacking.
Then running the deposit with docker to confirm everything is indeed fine...