Skip to content

Commit

Permalink
better tabbing/labeling in gitpod.yml (publiclab#10191)
Browse files Browse the repository at this point in the history
* better tabbing/labeling in gitpod.yml

* Update .gitpod.yml

* Update .gitpod.yml

* Update .gitpod.yml
  • Loading branch information
jywarren authored Sep 21, 2021
1 parent 44e0655 commit 6198af6
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,24 @@ ports:
- port: 3000
onOpen: open-preview
tasks:
- init: >

- name: Chromium
init: gp sync-await bundle # await Rails command
command: chromium-browser --no-sandbox
openMode: tab-before

- name: Redis
init: gp sync-await bundle # await Rails command
command: redis-server
openMode: tab-before

- name: Rails
init: >
export CHROME_BIN=/usr/bin/chromium-browser &&
gem install bundler &&
bundle config set without 'production' &&
bundle install &&
gp sync-done bundle &&
cp config/database.yml.gitpod config/database.yml &&
mysql -e "SET @@global.sql_mode=(SELECT REPLACE(@@global.sql_mode, 'ONLY_FULL_GROUP_BY', ''));" &&
mysql -e "CREATE DATABASE plots;" &&
Expand All @@ -18,10 +31,12 @@ tasks:
rails g react:install
command: >
passenger start
openMode: split-left

- command: chromium-browser --no-sandbox
- command: redis-server
- command: rails c
- name: Rails console
init: gp sync-await bundle # await Rails command
command: rails c
openMode: split-right

github:
prebuilds:
Expand Down

0 comments on commit 6198af6

Please sign in to comment.