-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.php
More file actions
63 lines (50 loc) · 1.53 KB
/
Copy pathdeploy.php
File metadata and controls
63 lines (50 loc) · 1.53 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
<?php
namespace Deployer;
/**
* 1. Deployer recipes we are using for this website
*/
require_once 'vendor/studio24/deployer-recipes/recipe/laravel.php';
require 'contrib/php-fpm.php';
/**
* 2. Deployment configuration variables
*/
// Project name
set('application', 'Fitzwilliam Museum Main Website');
// Git repo
set('repository', 'git@github.com:FitzwilliamMuseum/fitz-main-website.git');
// Filesystem volume we're deploying to
set('disk_space_filesystem', '/');
// Sets the version of PHP for Deployer to use (when running Composer Install etc)
set('bin/php', function () {
return '/usr/bin/php8.1';
});
/**
* 3. Hosts
*/
host('production')
->set('hostname', '13.134.144.10')
->set('http_user', 'www-data')
->set('deploy_path', '/var/www/vhosts/fitzmuseum.cam.uk/production')
->set('log_files', [
'storage/logs/*.log',
'/logs/apache2/fitzmuseum.cam.uk.access.log',
'/logs/apache2/fitzmuseum.cam.uk.error.log',
])
->set('url', 'https://www.fitzmuseum.cam.uk');
host('staging')
->set('hostname', '13.42.150.108')
->set('http_user', 'www-data')
->set('deploy_path', '/var/www/fitzmuseum.cam.uk/staging')
->set('log_files', [
'storage/logs/*.log',
'/var/log/apache2/fitzmuseum.cam.uk.access.log',
'/var/log/apache2/fitzmuseum.cam.uk.error.log',
])
->set('url', 'https://fitzmuseum.studio24.dev');
/**
* 4. Deployment tasks
*
* Any custom deployment tasks to run
*/
task('artisan:twig:clean', function() {});
task('artisan:migrate', function() {});