New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Push-to-deploy #264
Comments
It's possible. But gogs currently does not provide this feature. |
This feature someone else has asked before, it will be implemented. |
A little how-to for a server-side workaround, waiting for a possible gogs feature :)
#!/bin/sh
git --work-tree=/var/www/html/mycode --git-dir=/var/www/html/gogs/repos/doe/mycode.git checkout -f That's all! |
Wow, looks great! |
We don't use git's post-receive hook. But we can add a hook in |
These things can actually happen in the |
Hi @tubia , I just pushed code to Any feedback is welcome! |
Hi @unknwon sounds great :) |
hi @tubia, your solution works like a charm. All I needed to do was: |
Lint models/org.go
* Added ENABLE_GIT_HOOKS setting to cheat sheet As mentioned in [issue 264](gogs/gogs#264) of the gogs main repo, gogs contains a dedicated setting to allow the execution of git hooks which wasn't reflected in the documentation until now. * Added German translation to previous commit * Added French translation to previous commit
Hi,
is possible to use gogs in a psuh-to-deploy system?
What I would like to achieve is that when you push to gogs, all the files are copied to 'production/' folder (in the same server).
Is this possible?
The text was updated successfully, but these errors were encountered: