You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docker compose exec -T app uv run manage.py migrate --settings=config.docker-compose
103
+
docker compose exec -T app sh -c 'echo "from data.v2.build import build_all; build_all()"|uv run manage.py shell --settings=config.docker-compose'
104
104
```
105
105
106
106
Browse [localhost/api/v2/](http://localhost/api/v2/) or [localhost/api/v2/pokemon/bulbasaur/](http://localhost/api/v2/pokemon/bulbasaur/) on port `80`.
@@ -151,8 +151,8 @@ Configure `kubectl` to point to a cluster and then run the following commands to
151
151
kubectl apply -k Resources/k8s/kustomize/base/
152
152
kubectl config set-context --current --namespace pokeapi # (Optional) Set pokeapi ns as the working ns
153
153
# Wait for the cluster to spin up
154
-
kubectl exec --namespace pokeapi deployment/pokeapi -- python manage.py migrate --settings=config.docker-compose # Migrate the DB
155
-
kubectl exec --namespace pokeapi deployment/pokeapi -- sh -c 'echo "from data.v2.build import build_all; build_all()" | python manage.py shell --settings=config.docker-compose' # Build the db
154
+
kubectl exec --namespace pokeapi deployment/pokeapi -- uv run manage.py migrate --settings=config.docker-compose # Migrate the DB
155
+
kubectl exec --namespace pokeapi deployment/pokeapi -- sh -c 'echo "from data.v2.build import build_all; build_all()" | uv run manage.py shell --settings=config.docker-compose' # Build the db
156
156
kubectl wait --namespace pokeapi --timeout=120s --for=condition=complete job/load-graphql # Wait for Graphql configuration job to finish
0 commit comments