-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdeploy.php
More file actions
25 lines (19 loc) · 782 Bytes
/
deploy.php
File metadata and controls
25 lines (19 loc) · 782 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
<?php
namespace Deployer;
$recipe = 'deployer/recipe/base.php';
if (!is_file($recipe) || !is_readable($recipe)) {
echo "No deployer setup was found.\r\n";
echo exec('git clone [email protected]:novicell/dds_deployer.git deployer');
echo exec('cd deployer && rm -rf .git');
echo "Deployer setup was downloaded. Setup a config.yml file and try again.";
exit;
}
$config_file = 'deployer/config.yml';
if (!is_file($config_file) || !is_readable($config_file)) {
echo "Could not find configuration file.\r\nIf this is a new project, you can create one by copying example.config.yml.\r\nIf this is not a new project, you might find a config file in 1password";
exit;
}
// Include recipes
require 'deployer/recipe/base.php';
// Load config file
inventory($config_file);