Skip to content

Commit

Permalink
set deployer config
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-kamil committed Feb 7, 2024
1 parent 8724333 commit c764da3
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 187 deletions.
187 changes: 0 additions & 187 deletions config/deploy.php

This file was deleted.

34 changes: 34 additions & 0 deletions deploy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php
namespace Deployer;

require 'recipe/laravel.php';

// Config

set('bin/php', 'php8.2');
set('bin/composer', '{{bin/php}} $(which composer2)');

set('repository', 'git@github.com:SlovakNationalGallery/komarch.sk.git');

add('shared_files', []);
add('shared_dirs', ['public/wp-content']);

// Hosts

host('webumenia.sk')
->set('remote_user', 'lab_sng')
->set('deploy_path', '/var/www/komarch.sk');

// Tasks

task('build', function () {
cd('{{release_path}}');
run('npm ci && npm run build');
});

// Hooks

before('artisan:migrate', 'artisan:cache:clear');
after('deploy:vendors', 'build');
after('deploy:symlink', 'artisan:queue:restart');
after('deploy:failed', 'deploy:unlock');

0 comments on commit c764da3

Please sign in to comment.