Memo on working with the Laravel+ project InertiaJS + Vue 3 with Vite (syntax <script setup>) - the main thing from development to updating on an external server (hosting) with manual deployment:
npm run dev: working with the project (making changes)npm run build: compilation into production version- adding changes to git:
git add .
!!! we take into account the contents of the.gitignore
file
- commit:
git commit -m "name changes" - uploading the changes to GitHub:
git push - connecting to the server (hosting) from a local terminal using ssh key (VS Code):
ssh -i ~/.ssh/id_rsa r****i@r****.***.***- updating the project on the server (hosting):
git pull origin master- if dependency packages were added/changed in the project, then using Composer on the server we make changes:
php composer.phar install - updating migrations:
php artisan migrate:refresh
