So I'm using git (BitBucket) in my workflow and I wan't to ditch classic FTP upload and use some kind of "git powered" deployment executed via the terminal.
So this is the setup I would prefer:
How can I achieve this?
In order to pull this off you will need to incorporate some sort of CICD(Continuous Integration/Continuous Deployment) pipeline. There are many different flavors of this, but since you are using Bitbucket you may want to look into Atlassian's Bamboo .
Once you integrate that into your pipeline, you would need to have the tool poll for changes in your git repository. Once it sees those changes, it can automatically run any tests that you have and once they pass it can do a gulp deploy staging
or gulp deploy live
.
Atlassian have a pretty decent amount of resources on this using their set of tools here as well.
Sounds like you want to give DeployHQ a try.
There are a lot more features too!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.