forked from davidfic/estate
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cleanup startup of localdev to make it more turn-key - also update re…
…adme about auth in production
- Loading branch information
Kyle Rockman
committed
Sep 15, 2017
1 parent
aecd982
commit 3968e14
Showing
5 changed files
with
41 additions
and
9 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
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 @@ | ||
[{"model": "auth.user", "pk": 1, "fields": {"password": "pbkdf2_sha256$30000$QwLXaBkulNVt$VgCNam4n/QKxP+ZH2CYdVe1KiTKAjJtn/ofsMzmFh+I=", "last_login": null, "is_superuser": true, "username": "root", "first_name": "", "last_name": "", "email": "", "is_staff": true, "is_active": true, "date_joined": "2017-09-15T16:42:55.217Z", "groups": [], "user_permissions": []}}] |
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 |
---|---|---|
@@ -1,6 +1,17 @@ | ||
#!/bin/bash | ||
#webpack --hot --watch & | ||
|
||
RETRIES=5 | ||
|
||
# This will fail the first time onstartup but it takes long enough for the container to come up | ||
# Every other time you restart the container the DB will exist and it'll work properly untill the postgress container goes away | ||
until psql -c "select 1" > /dev/null 2>&1 || [ $RETRIES -eq 0 ]; do | ||
echo "Waiting for postgres server, $((RETRIES--)) remaining attempts..." | ||
sleep 1 | ||
done | ||
|
||
echo "Starting Webpack Server" | ||
webpack-dev-server --config webpack/webpack.local.config.js & | ||
echo "Starting Django Server" | ||
django-admin migrate | ||
django-admin loaddata initial_data | ||
exec django-admin runserver 0.0.0.0:8000 |