From cedef989f19951779f585b5361e7b130dd4d6539 Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Fri, 10 Sep 2021 11:35:52 -0400 Subject: [PATCH] Added gitpod-init script (#14698) --- .gitpod.yml | 7 +------ gitpod-init.sh | 8 ++++++++ 2 files changed, 9 insertions(+), 6 deletions(-) create mode 100755 gitpod-init.sh diff --git a/.gitpod.yml b/.gitpod.yml index e0e34ce32..c81e637a9 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -16,12 +16,7 @@ tasks: before: | redis-server & init: > - cp .env_sample .env && - echo "APP_DOMAIN=\"$(gp url 3000 | cut -f 3 -d /)\"" >> .env && - echo 'APP_PROTOCOL="https://"' >> .env && - gem install solargraph && - gem install foreman && - bin/setup + gitpod-init.sh command: > bin/startup - command: > diff --git a/gitpod-init.sh b/gitpod-init.sh new file mode 100755 index 000000000..7f895d4b7 --- /dev/null +++ b/gitpod-init.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +cp .env_sample .env +echo "APP_DOMAIN=\"$(gp url 3000 | cut -f 3 -d /)\"" >> .env +echo 'APP_PROTOCOL="https://"' >> .env +gem install solargraph +gem install foreman +bin/setup