forked from abuharis/php-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tasks
36 lines (36 loc) · 1.13 KB
/
tasks
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
{
"tasks": [
{
"type": "che",
"label": "Configure Apache Web Server DocumentRoot",
"command": "if grep -q '/projects$' /etc/apache2/sites-available/000-default.conf; then\n sed -i 's|DocumentRoot /projects|DocumentRoot /projects/php-web-simple|' /etc/apache2/sites-available/000-default.conf\nelse\n echo \"DocumentRoot already configured!\"\nfi\n",
"target": {
"containerName": "php"
}
},
{
"type": "che",
"label": "Start Apache Web Server",
"command": "service apache2 start",
"target": {
"containerName": "php"
}
},
{
"type": "che",
"label": "Stop Apache Web Server",
"command": "service apache2 stop",
"target": {
"containerName": "php"
}
},
{
"type": "che",
"label": "Restart Apache Web Server",
"command": "service apache2 restart",
"target": {
"containerName": "php"
}
}
]
}