Skip to content

Instantly share code, notes, and snippets.

View liujingyu's full-sized avatar

jingyu liu liujingyu

View GitHub Profile
worker_processes 1; # we could enlarge this setting on a multi-core machine
error_log logs/error.log warn;
events {
worker_connections 2048;
}
http {
lua_package_path 'conf/?.lua;;';
@liujingyu
liujingyu / v1.2.0.patch
Last active February 11, 2018 03:01
walle-web v1.2.0 a patch support docker deploy,use dir map way.
diff --git a/components/Folder.php b/components/Folder.php
index 2a84f32..1e757c4 100644
--- a/components/Folder.php
+++ b/components/Folder.php
@@ -267,9 +267,13 @@ class Folder extends Ansible {
$currentTmp = sprintf('%s/%s/current-%s.tmp', rtrim($this->getConfig()->release_library, '/'), $project, $project);
// 遇到回滚,则使用回滚的版本version
$linkFrom = Project::getReleaseVersionDir($version);
- $cmd[] = sprintf('ln -sfn %s %s', $linkFrom, $currentTmp);
- $cmd[] = sprintf('chown -h %s %s', $user, $currentTmp);
@liujingyu
liujingyu / gist:df2a9f957220557dc066e9e85c67f73f
Created October 29, 2018 07:21 — forked from siddharthg/gist:6923b2cbb402bd65255af7859a5d52a5
Install Thrift 0.10.0 with brew on macOS
brew unlink thrift
brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/16ebe5f1843e6cb54856311ff0f676be53007329/Formula/thrift.rb
class Thrift < Formula
desc "Framework for scalable cross-language services development"
homepage "https://thrift.apache.org/"
url "https://www.apache.org/dyn/closer.cgi?path=/thrift/0.10.0/thrift-0.10.0.tar.gz"
sha256 "2289d02de6e8db04cbbabb921aeb62bfe3098c4c83f36eec6c31194301efa10b"
bottle do
cellar :any
sha256 "20b9fd54b8aaf036d5c9c85f53ab084819f1b6bbb392bd266e4f7c7e2dbbc48b" => :high_sierra
sha256 "a0d93b6f61524775ec194daa25a3a8da16f5e858823822847074711c718f1618" => :sierra