Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update .gitpod.yml for split terminal #725

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 20 additions & 7 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,33 @@ ports:
- port: 5000
onOpen: open-preview
tasks:
- init: >

- name: Rails
init: >
gem install bundler &&
bundle install --without production &&
yarn install &&
cp config/database.yml.gitpod config/database.yml &&
cp config/config.yml.example config/config.yml &&
cp db/schema.rb.example db/schema.rb &&
bundle install --without production &&
yarn install &&
rails db:create &&
rails db:schema:load &&
rails db:migrate
rails db:migrate &&
rake db:fixtures:load &&
gp sync-done bundle
command: >
passenger start --port 5000

- command: redis-server
- command: rails c
openMode: tab-after

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

- name: Rails console
init: gp sync-await bundle # await Rails command
command: rails c
openMode: split-right

github:
prebuilds:
Expand Down