mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-02-10 18:05:10 +08:00
nodejs: add run-develop
This commit is contained in:
22
web/documentserver-example/nodejs/run-develop.py
Normal file
22
web/documentserver-example/nodejs/run-develop.py
Normal file
@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env python
|
||||
import sys
|
||||
sys.path.append('../../../../build_tools/scripts')
|
||||
import os
|
||||
import base
|
||||
|
||||
def install_module():
|
||||
base.print_info('Install')
|
||||
base.cmd('npm', ['install'])
|
||||
|
||||
def run_module(directory, args=[]):
|
||||
base.run_nodejs_in_dir(directory, args)
|
||||
|
||||
def run_integration_example():
|
||||
install_module()
|
||||
base.set_env('NODE_CONFIG_DIR', '../config')
|
||||
base.print_info('run integration example')
|
||||
run_module('bin', ['www'])
|
||||
|
||||
base.set_env('NODE_ENV', 'development-windows')
|
||||
|
||||
run_integration_example()
|
||||
Reference in New Issue
Block a user