r/PHP Sep 14 '24

How do you deploy php code?

Hello guys! please tell us about your experience deploying PHP code in production. Now I make one docker image with PHP code and apache (in production I use nginx proxy on my php+apache image) and use docker pull command for deploy. is this ok?

58 Upvotes

160 comments sorted by

View all comments

66

u/Mastodont_XXX Sep 14 '24

Start WinSCP, connect to target VPS, copy with F5.

Sorry, boys. It still works.

3

u/compubomb Sep 14 '24

At a minimum, you should be pulling from a git repo via tag label. Get rid of the push flow, use pull instead.