-
Notifications
You must be signed in to change notification settings - Fork 431
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Streamline docker setup a bit more (#264)
* docker: Take user creation off developers' shoulders * docker: Turn mysite/celery.py into a static file * readme: Advertise 127.0.0.1 rather than (working but weird) 0.0.0.0
- Loading branch information
Showing
4 changed files
with
23 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Copyright (C) 2019 Sebastian Pipping <[email protected]> | ||
# Licensed under the BSD License (3 clause, also known as the new BSD license) | ||
|
||
import os | ||
|
||
from celery import Celery | ||
|
||
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'mysite.settings') | ||
|
||
app = Celery('mysite') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,4 +11,10 @@ wait-for-it postgres:5432 | |
|
||
python3 manage.py migrate | ||
|
||
python3 manage.py createsuperuserwithpassword \ | ||
--username admin \ | ||
--password admin \ | ||
--email [email protected] \ | ||
--preserve | ||
|
||
exec "$@" |