File tree 1 file changed +14
-11
lines changed
1 file changed +14
-11
lines changed Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ schemaVersion: 2.1.0
2
2
metadata :
3
3
name : php-symfony
4
4
components :
5
- - name : php
5
+ - name : tools
6
6
container :
7
- image : quay.io/devfile/universal-developer-image:ubi8-latest
7
+ image : quay.io/devfile/universal-developer-image:ubi8-0e189d9
8
8
endpoints :
9
9
- exposure : public
10
10
name : symfony
@@ -21,6 +21,7 @@ components:
21
21
- name : composer
22
22
volume :
23
23
size : 512Mi
24
+
24
25
- name : symfony
25
26
volume :
26
27
size : 512Mi
@@ -46,27 +47,29 @@ components:
46
47
mountSources : false
47
48
48
49
commands :
49
- - id : install
50
+ - id : install-dependencies
50
51
exec :
51
52
label : " Install dependencies"
52
- component : php
53
- workingDir : ${PROJECTS_ROOT}/php-symfony
53
+ component : tools
54
+ workingDir : ${PROJECT_SOURCE}
54
55
commandLine : " composer install && wget https://get.symfony.com/cli/installer -O - | bash"
55
56
group :
56
57
kind : build
57
- - id : start
58
+
59
+ - id : start-web-server
58
60
exec :
59
61
label : " Start Symfony Web Server"
60
- component : php
61
- workingDir : ${PROJECTS_ROOT}/php-symfony
62
+ component : tools
63
+ workingDir : ${PROJECT_SOURCE}
62
64
commandLine : " $HOME/.symfony/bin/symfony server:start"
63
65
group :
64
66
kind : run
65
- - id : stop
67
+
68
+ - id : stop-web-server
66
69
exec :
67
70
label : " Stop Symfony Web Server"
68
- component : php
69
- workingDir : ${PROJECTS_ROOT}/php-symfony
71
+ component : tools
72
+ workingDir : ${PROJECT_SOURCE}
70
73
commandLine : " $HOME/.symfony/bin/symfony server:stop"
71
74
group :
72
75
kind : run
You can’t perform that action at this time.
0 commit comments