diff --git a/composer.json b/composer.json index 3e54354..086f945 100644 --- a/composer.json +++ b/composer.json @@ -45,7 +45,10 @@ ], "post-update-cmd": [ "@php artisan vendor:publish --tag=laravel-assets --ansi --force", - "Illuminate\\Foundation\\ComposerScripts::postUpdate" + "Illuminate\\Foundation\\ComposerScripts::postUpdate", + "@php artisan ide-helper:generate", + "@php artisan ide-helper:models --write-mixin", + "@php artisan ide-helper:meta" ], "post-root-package-install": [ "@php -r \"file_exists('.env') || copy('.env.example', '.env');\"" diff --git a/deploy.php b/deploy.php index 6a09e1e..b2201c2 100644 --- a/deploy.php +++ b/deploy.php @@ -23,7 +23,7 @@ host('production') ->set('hostname', 'vps.benjamyn.love') ->set('port', '22') ->set('remote_user', 'root') - ->set('deploy_path', '/opt/PriceyBotPanel2'); + ->set('deploy_path', '/opt/PriceyBotPanel'); // Tasks @@ -36,8 +36,13 @@ task('npm:build', function () { run("cd {{release_path}} && {{bin/npm}} run {$command}"); }); +task('perm:fix', function () { + run("chown -R nginx:nginx /opt/PriceyBotPanel"); +}); + // Hooks after('deploy:vendors', 'npm:install'); after('npm:install', 'npm:build'); +after('npm:build', 'perm:fix'); after('deploy:failed', 'deploy:unlock');