Added gitpod-init script (#14698)

This commit is contained in:
Nick Taylor 2021-09-10 11:35:52 -04:00 committed by GitHub
parent 41b3171dd1
commit cedef989f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 6 deletions

View file

@ -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: >

8
gitpod-init.sh Executable file
View file

@ -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