19 lines
319 B
Bash
Executable File
19 lines
319 B
Bash
Executable File
#!/bin/sh
|
|
|
|
lockPath="/tmp/init.lock"
|
|
|
|
npm config set registry http://registry.npm.taobao.org/;
|
|
|
|
cd /usr/src/app
|
|
|
|
echo "START INFINI-LOGGING-CENTER v1.0"
|
|
|
|
if [ ! -f "$lockPath" ]; then
|
|
npm install --registry=https://registry.npm.taobao.org
|
|
# npm i --production;
|
|
# npm run autod
|
|
npm run dev
|
|
else
|
|
npm run dev
|
|
fi
|