File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change
1
+ #### EC2
2
+ docker ps
3
+ docker exec -it <container-name> /bin/bash
4
+
5
+ #### container
6
+ python manage.py dumpdata --settings=SoftServeAcademy.settings > data.json
7
+ python manage.py migrate --settings=SoftServeAcademy.settings_deployment
8
+ python manage.py shell --settings=SoftServeAcademy.settings_deployment
9
+
10
+ #### py console
11
+ from django.contrib.contenttypes.models import ContentType
12
+ ContentType.objects.all().delete()
13
+ exit()
14
+
15
+ #### container again
16
+ python manage.py loaddata data.json --settings=SoftServeAcademy.settings_deployment
Original file line number Diff line number Diff line change 1
1
services :
2
2
web :
3
3
image : quitotactico/softserve-academy
4
- command : ["sh", "/app/ scripts/init.sh"]
4
+ command : ["sh", "/scripts/init.sh"]
5
5
environment :
6
6
- DJANGO_SETTINGS_MODULE=SoftServeAcademy.settings_deployment
7
7
depends_on :
You can’t perform that action at this time.
0 commit comments