#Problem with cicd laravel

6 messages · Page 1 of 1 (latest)

quaint mica
#

I am running my laravel project in aws ubuntu for cicd. I am able to successfully deploy the code and the output is also successful. But whenever I make a change in the code the webpage is taking me to a different page for 20 - 30 secs. The page is successfully updating only after 30 secs. I dont want to take me to a different page( a map in my case) after i make a change. The commands i am using are

composer update
sudo npm run build

 

sudo php artisan migrate
sudo php artisan cache:clear
sudo php artisan config:clear

 

sudo php artisan view:clear

 

sudo php artisan queue:restart``` is there any other commands I should include or is there any issue with the order of these commands?
turbid raft
#

Are you sure you "pipeline" is finished before you revisit the page

Also you can just swap those cache clear commands with "php artisan optimize" - it clears all caches and re-caches them, and caching is ideal in production

#

Also if you have OPCache running might be worth restarting the fpm

quaint mica
quaint mica
#

@turbid raft ??

turbid raft
#

What do you mean it goes to a different page exactly.