Skip to content

Instantly share code, notes, and snippets.

View zhangriyueming's full-sized avatar

Zhang Riyueming zhangriyueming

View GitHub Profile
[root@VM_0_15_centos srv]# tree
.
|-- apps
| |-- nginx-proxy -> /srv/deploys/nginx-proxy/releases/20200828185012/
| `-- apptest -> /srv/deploys/apptest/releases/20200831063756/
|-- deploys
| |-- nginx-proxy
| | |-- current -> /srv/deploys/nginx-proxy/releases/20200828185012/
| | |-- releases
| | | |-- 20200828183012
# Deployment playbook compatible with deployments created by capistrano
---
# ci工作环境下的 deploy/同步到ansible本机
# - hosts: ci
# remote_user: root
# tasks:
# - name: list the files in the folder # 列出ci服务器上deploy下的文件内容
# command: ls /home/ops/deploy/
# register: dir_out
# - name: copy from ci to local # 把deploy下的文件内容拷贝到ansible本机
@zhangriyueming
zhangriyueming / async_psycopg2.py
Last active December 24, 2017 08:01 — forked from FSX/async_psycopg2.py
A module for asynchronous PostgreSQL queries in Tornado.
#!/usr/bin/env python
__author__ = 'Frank Smit <frank@61924.nl>, Zhang Riyueming <rym@zrym.me>'
__version__ = '0.1.1'
import functools
try:
import psycopg2
except ImportError: