mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2025-05-02 17:03:42 -04:00
Trying increasing coco-brunch ulimit to deal with brunch sometimes erroring because of too many open files.
This commit is contained in:
parent
9ad4602e0f
commit
39621d5282
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ import sys
|
||||||
current_directory = os.path.dirname(os.path.realpath(sys.argv[0]))
|
current_directory = os.path.dirname(os.path.realpath(sys.argv[0]))
|
||||||
coco_path = os.getenv("COCO_DIR",os.path.join(current_directory,os.pardir))
|
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"
|
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:
|
while True:
|
||||||
print("Starting brunch. After the first compile, it'll keep running and watch for changes.")
|
print("Starting brunch. After the first compile, it'll keep running and watch for changes.")
|
||||||
call(brunch_path + " w",shell=True,cwd=coco_path)
|
call(brunch_path + " w",shell=True,cwd=coco_path)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue