Skip to content

Commit b9e9118

Browse files
committed
update
1 parent 29ee927 commit b9e9118

File tree

4 files changed

+4
-101
lines changed

4 files changed

+4
-101
lines changed

Dockerfile.prod

Lines changed: 0 additions & 15 deletions
This file was deleted.

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ This is a hello world app that is written in [Python](https://www.python.org/),
1010

1111
```bash
1212
$ git clone repo
13+
$ docker-compose up -d db
14+
$ docker-compose run app python manage.py migrate
1315
$ docker-compose up --build
1416
```
1517

16-
At this point, the app runs at `localhost:9999`
18+
At this point, the app runs at `localhost:8000`
1719

1820
<br />
1921

@@ -105,21 +107,11 @@ In production, [Gunicorn](https://gunicorn.org/) is used as the server, [Nginx](
105107
### Development
106108

107109
```
108-
docker-compose up db -d
110+
docker-compose up -d db
109111
docker-compose run app python manage.py migrate
110112
docker-compose up --build
111113
```
112114

113-
### Production
114-
115-
```
116-
docker-compose --file docker-compose.prod.yml build
117-
docker-compose --file docker-compose.prod.yml up db -d
118-
docker-compose --file docker-compose.prod.yml run app python manage.py migrate
119-
docker-compose --file docker-compose.prod.yml run app python manage.py collectstatic
120-
docker-compose --file docker-compose.prod.yml up
121-
```
122-
123115
## Customizing
124116

125117
Docker images can be customized using environment variables or customized during build time using build arguments.

docker-compose.prod.yml

Lines changed: 0 additions & 73 deletions
This file was deleted.

manage.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import os
44
import sys
55

6-
76
def main():
87
"""Run administrative tasks."""
98
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'hello_world.settings')

0 commit comments

Comments
 (0)