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
| version: '2' | |
| services: | |
| php: | |
| image: php:5.6-fpm-alpine | |
| volumes: | |
| - data:/_data | |
| - ./site:/var/www/html:ro | |
| networks: | |
| - backend | |
| command: sh -c 'chown www-data /_data && exec php-fpm' |
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
| # Workaround for: https://github.com/feincms/feincms/issues/323 | |
| # "Unable to delete pages containing custom content types" | |
| from django.db.models.signals import pre_delete | |
| import logging | |
| log = logging.getLogger(__name__) | |
| def fix_content_model_delete(model): | |
| """Register a pre-delete handler that will remove all content when a |
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
| import gevent.monkey | |
| gevent.monkey.patch_all() | |
| import os | |
| import sys | |
| import fcntl | |
| import gevent | |
| from gevent.socket import wait_read | |
| from redis import Redis |
NewerOlder