This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- $ sudo opm get jkeys089/lua-resty-hmac | |
local shell = require "resty.shell" | |
local cjson = require "cjson.safe" | |
local hmac = require "resty.hmac" | |
local secret = '<MY SUPER SECRET>' | |
local event = 'push' | |
local branch = 'refs/heads/master' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/bash | |
cd ~/work/ || exit | |
sudo openresty -p `pwd` -c conf/nginx.conf -t || exit | |
ps -ef | grep openresty | grep -v grep | |
if [ $? -eq 0 ] | |
then |
NewerOlder