Updates
Take a backup before every update.
Steps
-
Extract the new production package into the existing project folder, overwriting the files.
-
Check that the
public/buildfolder was uploaded completely. Do not mix old and new build files. -
Apply database changes:
php artisan migrate --force -
Clear and rebuild the caches:
php artisan optimize:clear php artisan config:cache php artisan route:cache php artisan view:cache -
If you use LiteSpeed or a CDN, clear the HTML and CSS cache.
If it went right: the site opens and you can sign in and create a note.
Warning:
.env,storage/installed.lockandpublic/uploadsare your data. Do not delete them during an update.
If the layout looks broken
HTML and CSS may be coming from different versions. Upload the public/build folder again, clear the caches and refresh the browser with Ctrl+F5.