To deploy code from my repositories, I use a service called Deploy. It allows you to enter FTP connections and to specify a folder to deploy into. But what I missed until today, was the possibility of deploying only a subfolder of my repository.

For frontend development I use tools like SASS and Grunt. When I compile my SASS files, combine JavaScripts etc., my Grunt tasks place them in a build folder. When I deploy the code, Deploy not only uploads the files in the build folder, but also all the source files, that aren’t really needed on the server.

Today I discovered that Deploy can actually deploy code from a subfolder within a repository. When setting up a server to deploy to, you can specify a folder in the repository which will be deployed from. That’s what I learnt today.