-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.yaml
More file actions
30 lines (28 loc) · 890 Bytes
/
install.yaml
File metadata and controls
30 lines (28 loc) · 890 Bytes
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
name: ddev-ce-deploy
ddev_version_constraint: ">= v1.24.0"
project_files:
- "web-build/Dockerfile"
- "web-build/provision.yml"
- "ce-deploy.sh"
- "commands/web/deploy"
- "docker-compose.ce-deploy.yaml"
post_install_actions:
- |
<?php
#ddev-description: Configure ce-deploy and update permissions
$projectName = $_ENV['DDEV_PROJECT'];
$docroot = $_ENV['DDEV_DOCROOT'];
$projectType = $_ENV['DDEV_PROJECT_TYPE'];
// Make deploy command executable
$deployCommandPath = 'commands/web/deploy';
if (file_exists($deployCommandPath)) {
chmod($deployCommandPath, 0755);
echo "Made deploy command executable\n";
}
// Make deploy script executable
$deployScriptPath = 'ce-deploy.sh';
if (file_exists($deployScriptPath)) {
chmod($deployScriptPath, 0755);
echo "Made deploy script executable\n";
}
?>