dshoreman / servidor

A modern web application for managing servers
GNU Lesser General Public License v2.1
9 stars 11 forks source link

Fix nginx symlink not being toggled on Project save #522

Closed dshoreman closed 2 years ago

dshoreman commented 2 years ago

Adds a ProjectSaved event on the Project model so we can dispatch the required actions/jobs/tasks to add/remove the symlink in nginx/sites-enabled and reload nginx.

Also fixes the PHP version used in the default nginx template. Previously it was 7.4 which wasn't installed, so it threw a 502 Bad Gateway on and PHP or Laravel projects.

codecov[bot] commented 2 years ago

Codecov Report

Merging #522 (ca0ad4d) into develop (b16c05d) will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             develop     #522   +/-   ##
==========================================
  Coverage      99.56%   99.57%           
- Complexity       416      420    +4     
==========================================
  Files             85       86    +1     
  Lines           1154     1165   +11     
==========================================
+ Hits            1149     1160   +11     
  Misses             5        5           
Impacted Files Coverage Δ
app/Projects/Project.php 100.00% <ø> (ø)
app/Projects/ProjectSaved.php 100.00% <100.00%> (ø)
app/Projects/ToggleProjectVisibility.php 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update b16c05d...ca0ad4d. Read the comment docs.