-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-old.php
51 lines (38 loc) · 1.12 KB
/
deploy-old.php
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
<?php
namespace Deployer;
/**
* 1. Deployer recipes we are using for this website
*/
require 'recipe/common.php';
require 'vendor/studio24/deployer-recipes/recipe/common.php';
/**
* 2. Deployment configuration variables
*/
// Friendly project name
set('application', 'Amplify');
// The repo for the project
set('repository', '[email protected]:studio24/amplify.git');;
// Shared directories that are not in git and need to persist between deployments (e.g. uploaded images)
add ('shared_directories', [
'.well-known'
]);
set('webroot', 'web');
set('git_ssh_command', 'ssh');
// Default stage - prevents accidental deploying to production with dep deploy
set('default_stage', 'staging');
/**
* 3. Hosts
*/
host('production')
->set('hostname', '63.34.69.8')
->set('deploy_path', '/data/var/www/vhosts/amplify/production')
->set('url', 'https://amplify.studio24.net');
host('staging')
->set('hostname', '63.34.69.8')
->set('deploy_path', '/data/var/www/vhosts/amplify/staging')
->set('url', 'https://amplify-staging.studio24.net');
/**
* 4. Deployment tasks
*
* Any custom deployment tasks to run
*/