Skip to content

Commit 858e942

Browse files
committed
some guides and dockerfile updates
1 parent cf897e2 commit 858e942

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

GUIDES AND RULES/upload_database.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
services:
22
web:
33
image: quitotactico/softserve-academy
4-
command: ["sh", "/app/scripts/init.sh"]
4+
command: ["sh", "/scripts/init.sh"]
55
environment:
66
- DJANGO_SETTINGS_MODULE=SoftServeAcademy.settings_deployment
77
depends_on:

0 commit comments

Comments
 (0)