Commit 37faefb
committed
fix: regenerate the staging web root's index.php/.htaccess/storage on every deploy
The staging web root is a standalone cPanel document root, not a symlink
to $DEPLOY_PATH/public, so it needs its own Laravel bootstrap. Production
has this hand-crafted once outside the deploy pipeline; codify the same
thing for staging so a recreated web root self-heals: transform the
app's own public/index.php (__DIR__.'/..' -> absolute $DEPLOY_PATH)
instead of hardcoding file content in the workflow, plus copy .htaccess
and symlink storage/app/public, matching production's exact structure
(verified by diffing the two index.php files after normalization).1 parent 4d1349d commit 37faefb
1 file changed
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
165 | 169 | | |
166 | 170 | | |
167 | | - | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
168 | 175 | | |
169 | 176 | | |
170 | 177 | | |
| |||
0 commit comments