Skip to content

Commit

Permalink
added logging
Browse files Browse the repository at this point in the history
  • Loading branch information
SaminYaser-work committed Sep 16, 2023
1 parent af99bfa commit 93a7be0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion startup.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/bin/sh

echo "Script started" > /home/site/wwwroot/startup_status.txt

# File upload fix
sed -i 's|abort_unless|//&|g' /home/site/wwwroot/vendor/livewire/livewire/src/Controllers/FileUploadHandler.php
sed -i '/tmpfile/a $tmpfname = tempnam(sys_get_temp_dir(), "");\n$tmpFile = fopen($tmpfname, "w");' /home/site/wwwroot/vendor/livewire/livewire/src/TemporaryUploadedFile.php
Expand All @@ -21,4 +23,4 @@ php artisan event:cache
php artisan route:cache
php artisan view:cache

echo "Startup script ran successfully." > /home/startup_status.txt
echo "Startup script ran successfully." > /home/site/wwwroot/startup_status.txt

0 comments on commit 93a7be0

Please sign in to comment.