Trying increasing coco-brunch ulimit to deal with brunch sometimes erroring because of too many open files.

This commit is contained in:
Scott Erickson 2014-05-19 20:11:14 -07:00
parent 9ad4602e0f
commit 39621d5282

View file

@ -9,7 +9,7 @@ import sys
current_directory = os.path.dirname(os.path.realpath(sys.argv[0]))
coco_path = os.getenv("COCO_DIR",os.path.join(current_directory,os.pardir))
brunch_path = coco_path + os.sep + "node_modules" + os.sep + ".bin" + os.sep + "brunch"
subprocess.Popen("ulimit -n 10000",shell=True)
subprocess.Popen("ulimit -n 100000",shell=True)
while True:
print("Starting brunch. After the first compile, it'll keep running and watch for changes.")
call(brunch_path + " w",shell=True,cwd=coco_path)