File tree Expand file tree Collapse file tree 4 files changed +49
-7
lines changed Expand file tree Collapse file tree 4 files changed +49
-7
lines changed Original file line number Diff line number Diff line change
1
+ Hosting
2
+ =======
3
+
4
+
5
+
6
+ .. toctree ::
7
+ :maxdepth: 2
8
+
9
+ requirements.rst
10
+ with_dokku.rst
Original file line number Diff line number Diff line change 1
1
Hosting Requirements
2
2
====================
3
3
4
- Python server for the Django app
5
- ----------------------------------
6
-
7
- Normal options
8
-
9
4
Database
10
5
----------
11
6
@@ -19,7 +14,36 @@ Normal options
19
14
File Storage
20
15
------------
21
16
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.
23
47
24
48
Cron tasks
25
49
----------
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -26,6 +26,6 @@ The application consists of:
26
26
django-settings.rst
27
27
python-api/index.rst
28
28
migration-from-lib-cove-web.rst
29
- hosting/requirements .rst
29
+ hosting/index .rst
30
30
used-by.rst
31
31
You can’t perform that action at this time.
0 commit comments