You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: INSTALL.md
+51-8Lines changed: 51 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,28 @@
7
7
- Path to your repo should be `<your current directory>/QGIS-Plugins-Website `
8
8
- Go to dockerize directory `cd QGIS-Plugins-Website/dockerize`
9
9
10
+
- Create .env file
11
+
```bash
12
+
$ cp .env.template .env
13
+
```
14
+
15
+
- Edit .env file and set your environment variables
16
+
- Enable debug mode by setting `DEBUG=True`.
17
+
- Uncomment RABBITMQ_IMAGE if you want to use a different image version.
18
+
Default is `rabbitmq:3.7-alpine`. This is useful if you encounter any issues
19
+
with the default image (can be also use to change the image without editing the code).
20
+
Please also see [this discussion](https://github.com/qgis/QGIS-Plugins-Website/issues/80).
21
+
10
22
- Build and spin container
11
23
```bash
12
24
$ make build
13
-
$ make web
14
25
$ make devweb
15
26
```
16
27
17
-
- Run migrate
28
+
- Run migrate and seed db
18
29
```bash
19
-
$ make migrate
30
+
$ make devweb-migrate
31
+
$ make dbseed
20
32
```
21
33
22
34
If you have a backup, you can restore it:
@@ -25,16 +37,47 @@ If you have a backup, you can restore it:
25
37
make dbrestore
26
38
```
27
39
28
-
otherwise, you can seed initial data from fixtures:
40
+
- Set up python interpreter in PyCharm or just runserver from devweb container:
41
+
```bash
42
+
$ make devweb-runserver
29
43
```
30
-
make dbseed
44
+
and now, you can see your site at `http://localhost:62202``http://0.0.0.0:62202`.
45
+
46
+
- Run unit tests
47
+
```bash
48
+
$ make devweb-runtests
31
49
```
32
50
33
-
- Set up python interpreter in PyCharm or just runserver from devweb container:
51
+
- You can use the following credentials to log in if you ran the `make dbseed` command:
52
+
```
53
+
Admin account:
54
+
username: admin
55
+
password: admin
56
+
57
+
Staff account:
58
+
username: staff
59
+
password: staff
60
+
61
+
Plugin author account:
62
+
username: creator
63
+
password: creator
64
+
```
65
+
66
+
- Update migrations:
34
67
```bash
35
-
$ make devweb-runserver
68
+
$ make devweb-makemigrations app='plugins'
69
+
```
70
+
71
+
- Run a django command from the devweb container
72
+
```bash
73
+
$ make devweb-exec c='python manage.py createsuperuser'
74
+
$ make devweb-exec c='pip freeze'
75
+
```
76
+
77
+
- Enter the devweb container shell
78
+
```bash
79
+
$ make devweb-shell
36
80
```
37
-
and now, you can see your site at `http://0.0.0.0:62202` (skip this step if you are using PyCharm interpreter)
38
81
39
82
- If 'None' appears in the search results, it indicates a misalignment between the search index and the database. This discrepancy often arises when a plugin is deleted from the model but persists in the search index. To rectify this issue, it is essential to synchronize the search index with the database by rebuilding it. Execute the following command to initiate the rebuilding process:
0 commit comments