Skip to content

Commit

Permalink
fix build docker
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyMi37 committed Sep 27, 2023
1 parent 4273f67 commit 75fdeda
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 8 deletions.
24 changes: 17 additions & 7 deletions db-test.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@
[
{
"model": "users.location",
"pk": 1,
"fields": {
"created_at": "2023-09-18T06:47:27.606Z",
"user": 1059196451,
"latitude": 58.285148,
"longitude": 43.866258
}
},
{
"model": "appmsw.param",
"pk": 24,
Expand Down Expand Up @@ -61,15 +71,15 @@
},
{
"model": "appmsw.param",
"pk": 28,
"pk": 30,
"fields": {
"name": "key:CameraHome",
"name": "Sensor",
"paropt": "app",
"desc": "",
"category": "",
"code": "{\r\n\"TabName\":\"Camera-Home\",\r\n\"ClassName\":\"apptools.lte.warmhome\",\r\n\"Method\":\"ShowTabSample\",\r\n\"Role\":\"%All\",\r\n\"TabMenu\":{\"Close\":0},\r\n\"aw-icon\":\"fa-solid fa-video\",\r\n\"Active\":0,\r\n\"URL\":\"http://zind.serpax.site:65092/apptoolsrest/a/infochest#\",\r\n\"username\":\"superuser\",\r\n\"password\":\"SYS\",\r\n\"token\":\"321\"\r\n}",
"creation_date": "2023-08-30T11:58:46.007Z",
"user": 1,
"desc": "Sensor",
"category": "Sensor",
"code": "{\r\n\"TabName\":\"Sensor-Home\",\r\n\"ClassName\":\"apptools.lte.warmhome\",\r\n\"Method\":\"ShowTabSample\",\r\n\"Role\":\"%All\",\r\n\"TabMenu\":{\"Close\":1},\r\n\"aw-icon\":\"fa-solid fa-temperature-high\",\r\n\"Active\":1,\r\n\"URL\":\"http://find.serpan.site:65092/apptoolsrest/custom-task/user/run&class=apptools.core.rest&met=GetLastLogs&par=\",\r\n\"username\":\"demo\",\r\n\"password\":\"warmhome\",\r\n\"token\":\"657730-456321\"\r\n}",
"creation_date": "2023-09-27T17:43:07.845Z",
"user": null,
"public": true,
"enabled": true
}
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ services:
dockerfile: LocalDockerfile
container_name: dtb_django
restart: always
command: bash -c "python manage.py migrate && python manage.py loaddata db-test.json & python manage.py createsuperuser --noinput --username adm --email adm@ya.site & django-admin compilemessages -i dtb_venv -i src & python manage.py runserver 0.0.0.0:8000"
command: bash -c "python manage.py migrate && python manage.py loaddata db-test.json & python manage.py createsuperuser --noinput --username adm --email adm@localhost.com & python manage.py runserver 0.0.0.0:8000"
volumes:
- .:/code
ports:
Expand Down

0 comments on commit 75fdeda

Please sign in to comment.