-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_app.sh
executable file
·35 lines (24 loc) · 1.08 KB
/
run_app.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env bash
echo "Starting up Self-help Programs API"
cat << "EOF"
. . .
,-. ,-. | ," |-. ,-. | ,-. ,-. ,-. ,-. ,-. ,-. ,-. ,-,-. ,-.
`-. |-' | |- -- | | |-' | | | -- | | | | | | | | ,-| | | | `-.
`-' `-' `' | ' ' `-' `' |-' |-' ' `-' `-| ' `-^ ' ' ' `-'
' | | ,|
' ' `'
EOF
cat << "EOF"
\__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \_
__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/
\__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \_
__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/
\__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \_
__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/
\__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \__/ \_
EOF
docker-compose up -d
echo "Seeding DB"
docker-compose run --rm api python manage.py create_fixtures
echo "Seeded DB"
echo "API ready at http://0.0.0.0:5000/graphql"