duanshanduo3363
2016-04-11 08:10Git Post-Push hook替换build文件夹
I'm working with an AngularJS app that I am hosting on Azure as a Web App.
My repository is on Bitbucket, connected as a deployment slot. I use TortoiseGit as a Windows shell for commit/pull/push
. Grunt is my task runner.
Problem: I am not managing to replace the build
folder after a push has been made. This is what is being exposed on Azure (see picture):
What I've tried:
- Batch file using Windows ftp.exe replacing the folder after push using
mput
- Following this guide by taking advantages of Azure's engine for git deployment(s) that is behind every web app.
- WebHook on Bitbucket calling URL with simple PHP script doing a FTP upload
Currently my solution is that after a push I'm building using grunt build
and connecting through FTP with FileZilla and replacing build
folder manually.
How can I automate this?
Thanks in advance.
- 点赞
- 回答
- 收藏
- 复制链接分享
1条回答
为你推荐
- 无法从git对git post-update钩子获取依赖关系
- git
- 1个回答
- Git Post-Push hook替换build文件夹
- azure
- php
- git
- 1个回答
- OpenShift动作钩子部署问题
- symfony
- openshift
- php
- git
- bash
- 2个回答