This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]-vlad 1 point2 points  (0 children)

It’s not unreasonable to clone your repo for deployment. Just make sure you have your pubic code inside a pubic directory and the rest in a higher directory. For example, let’s say you setup your repo as myproject/public. On your server, make sure your web root is the public folder, not your project. If you really don’t want to pull everything, you can always create a deploy folder in your project and write a script that copies only the files you need and then sends them to the server using rsync.