This file contains hidden or 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
<?php | |
$xdebug_coverage_log_file_prefix = "/tmp/xdebug/v2-coverageLog-"; | |
xdebug_start_code_coverage(); | |
register_shutdown_function('coverageLog'); | |
$xdebug_coverage_log_file = $xdebug_coverage_log_file_prefix . date('Ymd') . '.log'; | |
function coverageLog() { | |
global $xdebug_coverage_log_file; | |
$logs = xdebug_get_code_coverage(); |
This file contains hidden or 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
pool = redis.ConnectionPool(host='localhost', port=6379, db=0); | |
redisHandle = redis.StrictRedis(connection_pool=pool); | |
def retry(): | |
try: | |
print redisHandle.ping(); | |
except Exception,e: | |
print e | |
time.sleep(3); | |
retry(); |
This file contains hidden or 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
FROM daocloud.io/node:carbon as build-deps | |
WORKDIR /usr/web | |
COPY . ./ | |
RUN yarn config set registry https://registry.npm.taobao.org | |
RUN yarn install | |
RUN yarn build | |
FROM daocloud.io/nginx | |
WORKDIR /web |