iclanzan / grunt-git-deploy Goto Github PK
View Code? Open in Web Editor NEWDeploy files to any branch of any remote git repository.
License: MIT License
Deploy files to any branch of any remote git repository.
License: MIT License
The first time the task is run, it creates /tmp/Website (or /tmp/"whatever" depending on your project name) but does not remove it after it is done.
Subsequent runs fail if this folder is in place:
Running "git_deploy:your_target" (git_deploy) task
>> Cannot delete nonexistent file.
Running clone -b master https://github.com/eat-sleep-code/eat-sleep-code.com.git . in tmp/Website
Warning: fatal: destination path '.' already exists and is not an empty directory. Use --force to continue.
Thanks for your work here, saves a few trips to the terminal but is there a way to modify this so that it pushes a new commit without deleting the old one or what are the issues with this?
Warning: Arguments to path.join must be strings Use --force to continue.
So the first time I ran this and cloned the new branch to my webserver it went great. However I made some more changes to the site, built it which they deploys it to the branch.
But this time when I went to where I had cloned the branch and did a git pull, I had a conflict error of some sort where I changed the file. As if it didn't completely remove all the files before trying to overwrite them.
When I viewed the files in the file browser I did not see the conflicts in the files, so I think it happens after I git pull on the server.
Do I need to do something more specific when cloning the branch and pulling in newly deployed changes?
Hi. I'm trying to deploy to a git branch automatically from my build server, after a successful build. This plugin would be perfect, except I can only run it once.
The first run works great. Creates the remote branch and pushes the folder I need it to. Great. But on the second run it fails, obviously because the branch now already exists on the remote.
Running "git_deploy:app" (git_deploy) task
Running init
Running checkout --orphan deploy
Warning: fatal: A branch named 'deploy' already exists. Use --force to continue.
Is this intended behaviour? Can I configure this to run multiple times?
Any help greatly appreciated.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.