-
-
Notifications
You must be signed in to change notification settings - Fork 40
/
deploy.php
34 lines (26 loc) · 894 Bytes
/
deploy.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
<?php
namespace Deployer;
require 'recipe/symfony4.php';
set('application', 'test');
set('repository', '[email protected]:Noelierx/GameHer.git');
set('allow_anonymous_stats', false);
set('git_tty', false);
set('default_timeout', 600);
add('shared_files', []);
add('shared_dirs', ['public/uploads']);
add('writable_dirs', ['public/uploads']);
task('build', function () {
run('cd {{release_path}} && build');
});
task('deploy:npm:install', 'npm install')->desc('Installing node modules');
task('deploy:npm:build', 'npm run build')->desc('Running webpack');
after('deploy:failed', 'deploy:unlock');
before('deploy:symlink', 'database:migrate');
before('deploy:cache:clear', 'deploy:npm:install');
before('deploy:cache:clear', 'deploy:npm:build');
//Setup host
host('161.35.75.9')
->user('gameher')
->multiplexing(false)
->forwardAgent(true)
->set('deploy_path', '~/{{application}}');