2
how I can send a specific branch to Github through Git?
I am creating a project to learn how to use Gulp and its plugins, and in it I created a folder with source code, called src
and a folder containing the minified files, processed CSS sheets and so on, called build
. I tried to create a branch in Git called deploy
and just add the build files to that branch and then do the pull
to the repository, but I can’t just send this folder.
In the various tests I did sometimes goes the whole project, with the folder src
, sometimes another remote branch is created in the repository..
Do you have any organizing tips of this type, for projects with task Runners?
How does this deploy pipeline work? Does Gulp itself have a deploy function, or a plugin designed for this? Maybe that’s exactly the answer. The reason I included the build in the versioning was just not knowing how to deploy later (without FTP or similar).
– Luan Vicente
It depends on how you want to deploy, but Gulp has many libraries to help deploy. For example if you want to send only the static files to the AWS vc has a Gulp plugin that communicates with S3 and stores everything there. If you have virtual machines that run in the cloud, you can send a zipped file with your build to some cloud server and have your virtual machine download that file. Another option would be to use Gulp to send directly to your VM via ftp. There are numerous options at this point of the deploy.
– Vinicius Zaramella
I’ll look into it. Thanks for the directions!
– Luan Vicente