Compare commits

...

5 Commits

Author SHA1 Message Date
ducoterra
5efb93ea68 don't zoom on double tap 2020-04-25 15:03:03 -04:00
ducoterra
1ee6b890ef remove snippets urls for now 2020-04-25 12:58:31 -04:00
ducoterra
18aab648c6 you have got to be kidding me 2020-04-25 12:34:03 -04:00
ducoterra
57328a7fc8 need secret mounts 2020-04-25 12:30:04 -04:00
ducoterra
948569a659 spacing... spacing 2020-04-25 12:21:31 -04:00
7 changed files with 25 additions and 5 deletions

View File

@@ -46,4 +46,5 @@ deploy:
- for f in $(find k8s -regex '.*\.ya*ml'); do envsubst < $f > "/deploy/$(basename $f)"; done
- ./kubectl apply -f /deploy
- ./kubectl rollout status deploy $DEPLOY
- ./kubectl exec $(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}') -- python manage.py migrate
- POD=$(./kubectl get pods --selector=app=$DEPLOY --output=jsonpath='{.items[*].metadata.name}')
- ./kubectl exec $POD -- python manage.py migrate

13
.vscode/launch.json vendored
View File

@@ -5,7 +5,7 @@
"version": "0.2.0",
"configurations": [
{
"name": "Python: Django",
"name": "Test",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
@@ -13,6 +13,17 @@
"test",
],
"django": true
},
{
"name": "Run Server",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/manage.py",
"args": [
"runserver",
"--noreload"
],
"django": true
}
]
}

View File

@@ -18,7 +18,7 @@ from django.urls import path, include
from django.http import JsonResponse
urlpatterns = [
path('', include('api.urls')),
# path('api/', include('api.urls')),
path('', include('ui.urls')),
path('admin/', admin.site.urls),
]

View File

@@ -16,7 +16,9 @@ spec:
image: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
envFrom:
- configMapRef:
name: $DEPLOY
name: $DEPLOY
- secretRef:
name: django-secrets
volumeMounts:
- mountPath: /app/db
name: $DEPLOY

View File

@@ -13,4 +13,8 @@ html, body {
flex-direction: column;
align-items: center;
text-align: center;
}
.disable-dbl-tap-zoom {
touch-action: manipulation;
}

View File

@@ -20,6 +20,7 @@ var count = document.getElementById("COUNT");
button.addEventListener("click", event => {
button.disabled = true;
button.classList.add("is-loading");
fetch('/button', {
method: 'POST',
headers: {
@@ -34,6 +35,7 @@ button.addEventListener("click", event => {
count.innerText = data.pressed;
}).finally(() => {
button.disabled = false;
button.classList.remove("is-loading");
});
});

View File

@@ -18,7 +18,7 @@
<h1 class="title">
The Button
</h1>
<button class="button is-primary" id="BUTTON">Press</button>
<button class="button is-primary disable-dbl-tap-zoom" id="BUTTON">Press</button>
</div>
<div><br></div>
<div>