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
[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 |
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
# 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本机 |
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/env python | |
__author__ = 'Frank Smit <frank@61924.nl>, Zhang Riyueming <rym@zrym.me>' | |
__version__ = '0.1.1' | |
import functools | |
try: | |
import psycopg2 | |
except ImportError: |