mirror of
https://github.com/codeninjasllc/codecombat.git
synced 2024-11-27 09:35:39 -05:00
5d4f5cd97d
The previous app.js watch wasn't working and we probably only need to see changes in schemas because server code depend on these
12 lines
561 B
Python
Executable file
12 lines
561 B
Python
Executable file
#!/usr/bin/python
|
|
from subprocess import call
|
|
import os
|
|
import sys
|
|
#TODO: Upgrade this so it works on windows
|
|
#These scripts will be placed in coco/bin
|
|
current_directory = os.path.dirname(os.path.realpath(sys.argv[0]))
|
|
coco_path = os.getenv("COCO_DIR",os.path.join(current_directory,os.pardir))
|
|
nodemon_path = coco_path + os.sep + "node_modules" + os.sep + ".bin" + os.sep + "nodemon"
|
|
|
|
call(nodemon_path + " . --ext \".coffee|.js\" --watch server --watch server_config.js --watch server_setup.coffee --watch app" + os.sep + "schemas",shell=True,cwd=coco_path)
|
|
|