Hi! I'm Johannes Dachsel, a web designer and developer based near Heidelberg, Germany. This is my personal website. Get in touch

Johannes Dachsel

What I learnt today: deploying subfolders with Deploy

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.