-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitpod.yml
38 lines (34 loc) · 1.1 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Example GitPod configuration. You will need to adjust this for the different processes you run during development
image:
file: .gitpod.Dockerfile
# These are the ports which are exposed
ports:
# Rails server
- port: 3000
onOpen: open-preview
# PostgreSQL server
- port: 5432
onOpen: ignore
# The tasks which run. Each "-" line is a new process, and there are different stages to them
# The "gp sync-done" and "gp sync-await" allow all the independent processes to wait for the
# Initial Rails install to complete
# See https://community.gitpod.io/t/gitpod-yml-and-making-sure-init-completes-before-command/2818/2
tasks:
- name: Install
init: >
gem update --system &&
bundle install &&
yarn install --check-files &&
rails db:setup &&
gp sync-done install
- name: Rails
init: gp sync-await install
command: rails server
- name: Redis
command: redis-server
- name: Sidekiq
init: gp sync-await install
command: sidekiq
# - name: Stripe
# init: gp sync-await install
# command: stripe listen --forward-to localhost:5000/webhooks/stripe