File tree Expand file tree Collapse file tree 5 files changed +16
-3
lines changed Expand file tree Collapse file tree 5 files changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -121,6 +121,10 @@ sqlitedb:
121
121
run :
122
122
${MANAGE} runserver 8001 --insecure
123
123
124
+ run-docker-dev :
125
+ @echo " -> Run the Docker compose services in dev mode (hot reload on code changes)"
126
+ docker compose -f docker-compose.yml -f docker-compose.dev.yml up
127
+
124
128
test :
125
129
@echo " -> Run the test suite"
126
130
${MANAGE} test --noinput
@@ -156,4 +160,4 @@ offline-package: docker-images
156
160
@mkdir -p dist/
157
161
@tar -cf dist/scancodeio-offline-package-` git describe --tags` .tar build/
158
162
159
- .PHONY : virtualenv conf dev envfile install doc8 check valid check-deploy clean migrate upgrade postgresdb sqlitedb backupdb run test fasttest docs bump docker-images offline-package
163
+ .PHONY : virtualenv conf dev envfile install doc8 check valid check-deploy clean migrate upgrade postgresdb sqlitedb backupdb run run-docker-dev test fasttest docs bump docker-images offline-package
Original file line number Diff line number Diff line change 7
7
8
8
services :
9
9
web :
10
+ env_file :
11
+ - docker.dev.env
10
12
volumes :
11
13
- ./scanpipe:/opt/scancodeio/scanpipe
12
14
13
15
worker :
16
+ env_file :
17
+ - docker.dev.env
14
18
volumes :
15
19
- ./scanpipe:/opt/scancodeio/scanpipe
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ services:
22
22
command : wait-for-it --strict --timeout=60 db:5432 -- sh -c "
23
23
./manage.py migrate &&
24
24
./manage.py collectstatic --no-input --verbosity 0 --clear &&
25
- gunicorn scancodeio.wsgi:application --bind :8000 --timeout 600 --workers 8"
25
+ gunicorn scancodeio.wsgi:application --bind :8000 --timeout 600 --workers 8 ${GUNICORN_RELOAD_FLAG} "
26
26
env_file :
27
27
- docker.env
28
28
expose :
Original file line number Diff line number Diff line change
1
+ SCANCODEIO_DEBUG = True
2
+ GUNICORN_RELOAD_FLAG = --reload
Original file line number Diff line number Diff line change @@ -343,7 +343,10 @@ production servers.
343
343
make sqlitedb
344
344
345
345
.. warning ::
346
- Choosing SQLite over PostgreSQL has some caveats. Check this `link
346
+ SQLite is not recommended as a database backend. Certain built-in pipelines
347
+ depend on PostgreSQL-specific features and will fail when using SQLite.
348
+ For full functionality and reliability, PostgreSQL should be used.
349
+ Check this `link
347
350
<https://docs.djangoproject.com/en/dev/ref/databases/#sqlite-notes> `_
348
351
for more details.
349
352
You can’t perform that action at this time.
0 commit comments