Skip to content

Commit f3d2d5b

Browse files
committed
docs content
1 parent b206b23 commit f3d2d5b

File tree

4 files changed

+49
-7
lines changed

4 files changed

+49
-7
lines changed

docs/hosting/index.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
Hosting
2+
=======
3+
4+
5+
6+
.. toctree::
7+
:maxdepth: 2
8+
9+
requirements.rst
10+
with_dokku.rst

docs/hosting/requirements.rst

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
Hosting Requirements
22
====================
33

4-
Python server for the Django app
5-
----------------------------------
6-
7-
Normal options
8-
94
Database
105
----------
116

@@ -19,7 +14,36 @@ Normal options
1914
File Storage
2015
------------
2116

22-
TODO
17+
A file storage area is needed. This holds the files supplied by users, and the cached results of processing.
18+
19+
All code access in this library to the file storage area should be through Django `DefaultStorage` API.
20+
This means in theory, you are free to use:
21+
22+
* file storage by setting `MEDIA_ROOT` and `MEDIA_URL`.
23+
* cloud bucket solutions (eg AWS S3, Azure Storage Container).
24+
* any other Django compatible Storage API.
25+
26+
Nothing in this library requires the contents of this storage to be served on the web.
27+
28+
However, code in apps that uses this library may have:
29+
30+
* direct access to the file system, in which case file storage by setting `MEDIA_ROOT` and `MEDIA_URL` is required.
31+
* direct users to URL's for download, in which case the contents of this storage must be served on the web.
32+
33+
All apps that use this library currently just use direct file storage by setting `MEDIA_ROOT` and `MEDIA_URL`,
34+
and that should be considered the only tested solution.
35+
36+
37+
Python web server for the Django app
38+
------------------------------------
39+
40+
Normal options
41+
42+
43+
A background worker
44+
-------------------
45+
46+
Run using Celery's normal run options.
2347

2448
Cron tasks
2549
----------

docs/hosting/with_dokku.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Hosting with Dokku
2+
==================
3+
4+
For examples of this, see:
5+
6+
* https://github.com/openownership/cove-bods
7+
* https://github.com/Open-Telecoms-Data/cove-ofds
8+
* https://github.com/GFDRR/rdls-cove

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ The application consists of:
2626
django-settings.rst
2727
python-api/index.rst
2828
migration-from-lib-cove-web.rst
29-
hosting/requirements.rst
29+
hosting/index.rst
3030
used-by.rst
3131

0 commit comments

Comments
 (0)