Pulling Updates From Git On Running Project

- 1 answer

I have a laravel app deployed on an apache2 server in an ubuntu VM. It took an awful lot of time to set up, but I would like to make some more changes to the website, e.g. now I added a footer.

Is it safe / possible to just pull in the repository so the updates get installed on the project and then restart apache?

I did google but haven't found anything specific, hence why I am asking here.

Since it took so long to setup I am scared that I break something.



Yes, you can pull your code and run these commands to remove your old version caches.

php artisan view:clear
php artisan route:clear
php artisan cache:clear
php artisan view:cache
php artisan route:cache

you didn't need to restart your apache service.