add uploads folder

This commit is contained in:
Chris Smith
2025-02-19 22:54:35 +01:00
parent 1eb55d78cf
commit 4727e8b2c4
2 changed files with 6 additions and 4 deletions

View File

@@ -13,12 +13,14 @@ add('shared_files', [
'frontend/config/main-local.php', 'frontend/config/main-local.php',
'frontend/config/params-local.php', 'frontend/config/params-local.php',
]); ]);
add('shared_dirs', []); add('shared_dirs', [
'frontend/web/uploads',
]);
add('writable_dirs', []); add('writable_dirs', []);
// Hosts // Hosts
host('calorie') host('calorie')
->set('remote_user', 'root') ->set('remote_user', 'chris')
->set('deploy_path', '/var/www/calorie') ->set('deploy_path', '/var/www/calorie')
->set('environment', 'Production') ->set('environment', 'Production')
->setLabels([ ->setLabels([
@@ -26,7 +28,7 @@ host('calorie')
]); ]);
host('test.calorie') host('test.calorie')
->set('composer_options', '--verbose --prefer-dist --no-progress --no-interaction') ->set('composer_options', '--verbose --prefer-dist --no-progress --no-interaction')
->set('remote_user', 'root') ->set('remote_user', 'chris')
->set('deploy_path', '/var/www/test.calorie') ->set('deploy_path', '/var/www/test.calorie')
->set('environment', 'Testing') ->set('environment', 'Testing')
->setLabels([ ->setLabels([
@@ -40,7 +42,7 @@ task('init-app', function () {
desc('Restart yii queue workers'); desc('Restart yii queue workers');
task('yii:queue:restart', function () { task('yii:queue:restart', function () {
run('systemctl restart yii-queue@*'); run('systemctl restart calorie-queue@*');
}); });
task('deploy:prod', function() { task('deploy:prod', function() {

View File