Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Why fish? What recieves a hook?
$ gitfish help
Usage: gitfish [forever options] action
Gitfish Actions
config build initial config file
start start gitfish
help show this message
Daemonized Actions
stop stop gitfish (when daemonized)
restart restart gitfish (when daemonized)
status status of gitfish (when de
Optional Gitfish Options
--daemonize : start gitfish daemonized
--config : default is `$CWD/config.json`
--port : overide port from config
--token : overide token from config
Supported Forever Options
--logFile [file] : forever log file location # default: /tmp/gitfish.log
--outFile [file] : stdout file location # default: forever log file
--errFile [file] : stderr file location # default: forever log file
--pidFile [file] : pid file location # default: /tmp/gitfish.pid
--max [n] : max restarts on error
--plain : disable command line colors
--verbose : verbose forever output
What is forever? https://github.com/nodejitsu/forever
$ npm install git-fish
$ gitfish config
Listener port? [8000]
Security token? [secret]
Hook endpoint? [script] /foo
Hook script? [CWD/script.js]
Hook branch filter?
Saved configuration to /home/jmervine/config.json
$ cat config.json
{
"port": 8000,
"token": "secret",
"foo": {
"script": "/home/jmervine/script.js"
}
}
Configuration note:
script
can be anything;ruby
,bash
,python
, etc. It doesn't have to be anode
script.
Important Note:
script
path must absolute and the script must be executable.
{
"port": 8001,
"token": "shhh_do_not_tell_anyone",
"prod": {
"script": "/home/me/update_prod.sh",
"branch": "master" // optional branch matcher
// "branch" can also be an array of branches:
// e.g. `[ "master", "develop" ]`
},
"dev": {
"script": "/home/me/update_dev.sh",
"branch": [ "release", "develop" ] // optional branch matcher
}
}
Where /home/me/update_prod.sh
is something like:
#!/usr/bin/env bash
cd /path/to/mysite
# For safty, you can stash any changes, although best practice says
# there shouldn't be any here.
# git stash
git checkout master
git pull
make restart
And your post commit hooks would be:
http://mysite:8001/prod?token=shhh_do_not_tell_anyone
http://mysite:8001/dev?token=shhh_do_not_tell_anyone
FAQs
Github Web Hook Listener
We found that git-fish demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.