Forcing a fresh Nginx restart on `trellis deploy production`

Hi, I had issues with upgrading my site’s npm packages and in the process purged all nginx related configurations. When I got it working and ran trellis deploy production, no nginx server blocks/sites-available were added as they were previously. I tried manually adding them but am getting an nginx 500 error on my domain. Are there any steps to run this and create the nginx files ‘from scratch’?

Just tried a fresh provision in production and am getting "No package matching 'php7.4-dev as an error now, but see in my production server that php 7.4 as a version is present

What does this mean?

Destroy the server and provision a new one

Please read How to best ask questions on this forum

Thanks for the response and sorry for the admittedly somewhat low-effort post.

What does this mean?

I’m seeing the deploy happen successfully with the latest code from my roots project, but am not seeing the tasks for setting up nginx being run. I was wondering if there was a way to force those task steps to run again, but if it’s only destroying and then provisioning, I’ll give that a try.

I have another project on the DO server so was hesitant to destroy it and start with a new one but will give it a look. Thanks

Which tasks are you expecting to run for Nginx when you’re deploying? Most Nginx tasks are executed during provisioning, not deploying