Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/Http/Controllers/ArquivoController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,9 @@ public function show(Arquivo $arquivo)
$this->authorize('chamados.view', $arquivo->chamado);

//https://stackoverflow.com/questions/39329299/laravel-file-downloaded-from-storage-folder-gets-corrupted
ob_end_clean();
if (ob_get_level() > 0) {
ob_end_clean();
}

return Storage::download($arquivo->caminho, $arquivo->nome_original);
}
Expand Down
8 changes: 8 additions & 0 deletions dokku-deploy/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

mkdir -p storage/framework/cache storage/framework/sessions storage/framework/views storage/logs bootstrap/cache
chown -R www-data:www-data storage bootstrap/cache
chmod -R 775 storage bootstrap/cache

composer install --no-dev --optimize-autoloader --no-interaction
php artisan migrate --force
Loading