-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy.php
25 lines (19 loc) · 835 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
<?php
require 'recipe/symfony3.php';
task('deploy:asset_symlinks', function () {
run("cd {{release_path}}/web && ln -sfn {{release_path}}/assets assets"); // Atomic override symlink.
run("cd {{release_path}}/web && ln -sfn {{release_path}}/assets/jspm_packages jspm_packages"); // Atomic override symlink.
})->desc('Creating aseets symlinks to assets');
set('repository', '[email protected]:belackriv/step-inventory.git');
server('demo', '138.68.29.149', 22)
->user('deployer')
->identityFile()
->stage('demo')
->env('deploy_path', '/var/www/step-inventory');
server('app', '159.65.226.243', 22)
->user('deployer')
->identityFile()
->stage('demo')
->env('deploy_path', '/var/www/step-inventory');
before('deploy:cache:warmup', 'database:migrate');
before('deploy:symlink', 'deploy:asset_symlinks');