Skip to content

Commit 53f9b2e

Browse files
authored
fix(#60): update gitpod .env setup (#63)
1 parent bf109fe commit 53f9b2e

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.gitpod.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ image:
44
tasks:
55
- init: |
66
# Setup Gitpod .env
7-
echo -en "OAUTH_CALLBACK=https://3000-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}/callback\nOAUTH_CLIENT_ID=${GITPOD_INSTANCE_ID}" > .env
7+
$GITPOD_REPO_ROOT/.gitpod/scripts/env-setup.sh
88
99
# Setup DDev
1010
$GITPOD_REPO_ROOT/.gitpod/scripts/ddev-download-images.sh
@@ -16,6 +16,9 @@ tasks:
1616
# Installing Nuxt
1717
$GITPOD_REPO_ROOT/.gitpod/scripts/nuxt-setup.sh
1818
command: |
19+
# Setup Gitpod .env
20+
$GITPOD_REPO_ROOT/.gitpod/scripts/env-setup.sh
21+
1922
# Start DDev
2023
$GITPOD_REPO_ROOT/.gitpod/scripts/ddev-setup.sh
2124

.gitpod/scripts/env-setup.sh

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
set -eu -o pipefail
3+
4+
echo -en "OAUTH_CALLBACK=https://3000-${GITPOD_WORKSPACE_ID}.${GITPOD_WORKSPACE_CLUSTER_HOST}/callback\nOAUTH_CLIENT_ID=${GITPOD_INSTANCE_ID}" > .env

0 commit comments

Comments
 (0)