forked from AdventureLookup/AdventureLookup
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitpod.yml
More file actions
64 lines (59 loc) · 2.22 KB
/
.gitpod.yml
File metadata and controls
64 lines (59 loc) · 2.22 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
tasks:
- command: /home/gitpod/elasticsearch-7.16.0/bin/elasticsearch
- init: |
# Run ElasticSearch when prebuilding the workspace, so that adventures can be indexed.
# It has to run in the background so that the prebuild does not wait for it to exit.
/home/gitpod/elasticsearch-7.16.0/bin/elasticsearch &
gp await-port 9200
mysql -uroot -e "ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';"
mysql -uroot -proot -e "CREATE DATABASE IF NOT EXISTS adl;"
composer install -n --no-suggest
php bin/console doctrine:migrations:migrate --no-interaction
php bin/console doctrine:fixtures:load --no-interaction --fixtures src/AppBundle/DataFixtures/ORM/RandomAdventureData.php --fixtures src/AppBundle/DataFixtures/ORM/TestUserData.php
php bin/console app:elasticsearch:reindex
command: gp await-port 9200 && php bin/console server:start 0.0.0.0:8000
- init: npm install
command: npm run dev-server-gitpod
openMode: split-right
ports:
- port: 8000
onOpen: open-preview
- port: 3306
onOpen: ignore
- port: 8002
onOpen: ignore
- port: 8003
onOpen: ignore
# XDebug
- port: 9000
onOpen: ignore
- port: 9200
onOpen: ignore
- port: 9222
onOpen: ignore
- port: 9300
onOpen: ignore
image:
file: .gitpod.Dockerfile
github:
prebuilds:
# enable for the master/default branch (defaults to true)
master: true
# enable for all branches in this repo (defaults to false)
branches: true
# enable for pull requests coming from this repo (defaults to true)
pullRequests: true
# enable for pull requests coming from forks (defaults to false)
pullRequestsFromForks: true
# add a check to pull requests (defaults to true)
addCheck: true
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
addComment: false
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
addBadge: true
# add a label once the prebuild is ready to pull requests (defaults to false)
addLabel: false
vscode:
extensions:
- bmewburn.vscode-intelephense-client@1.3.11:w7xbYI5q5Cfv+1GBejftKg==
- felixfbecker.php-debug@1.13.0:WX8Y3EpQk3zgahy41yJtNQ==