     
     func run(server: ServerType) {
         print("Cloning project in \(Config.deployDirectory)")
+        
+        guard let repoURL = Config.repoURL, let projectName = Config.projectName else {
+              return
+        }
+        
         server.execute("mkdir -p \(Config.deployDirectory)")
         server.within(Config.deployDirectory) {
-            server.execute("git clone \(Config.repoURL)")
+            server.execute("git clone \(repoURL) \(projectName)")
         }
     }
 }


extension Config {
    public static var deployDirectory = "/var/www"
    public static var repoURL = ""
}

public class DeployCluster: Cluster {

    let name = "build"
    
    func run(server: ServerType) { 
        print("Building swift project")
        server.within(Config.projectDirectory) {
            server.execute("swift build")
        }
    }
