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
# in block server | |
location / { | |
root D:/project/www; | |
try_files $uri $uri/ /index.php; | |
} | |
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000 | |
location ~ \.php$ { | |
root D:/project/www; | |
fastcgi_pass 127.0.0.1:9000; |
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 time | |
from watchdog.observers import Observer | |
from watchdog.events import PatternMatchingEventHandler | |
class ScriptModifiedHandler(PatternMatchingEventHandler): | |
patterns = ['*.py'] | |
def __init__(self): | |
super(ScriptModifiedHandler, self).__init__() |
NewerOlder