Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bookshare
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
30
Issues
30
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
SRCT
bookshare
Commits
40ffb967
Commit
40ffb967
authored
Feb 26, 2020
by
Daniel W Bond
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
copied over go startup.sh
parent
5ffdf5bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
startup.sh
startup.sh
+13
-0
No files found.
startup.sh
0 → 100755
View file @
40ffb967
until
nc
-z
localhost 3306
||
nc
-z
db 3306
;
do
echo
"waiting for database to start..."
sleep
1
done
export
GO_SECRET_KEY
=
$(
dd
if
=
/dev/urandom
count
=
100 |
tr
-dc
"A-Za-z0-9"
|
fold
-w
60 |
head
-n1
2>/dev/null
)
python3 go/manage.py flush
--no-input
python3 go/manage.py makemigrations
python3 go/manage.py makemigrations go
python3 go/manage.py migrate
python3 go/manage.py createsuperuser
--noinput
--username
=
$superuser
--email
=
$superuser$GO_EMAIL_DOMAIN
echo
"from django.contrib.auth import get_user_model; User = get_user_model(); me = User.objects.get(username='
$superuser
'); me.first_name = 'David'; me.last_name = 'Haynes'; me.save(); "
| python3 go/manage.py shell
python3 go/manage.py runserver 0.0.0.0:8000
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment