inital commit 1
This commit is contained in:
commit
90d8b97673
138 files changed
+23684
No files matched your search
@@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
base=/OJ_FE
|
||||
|
||||
build_vendor_dll()
|
||||
{
|
||||
if [ ! -e "${base}/build/vendor-manifest.json" ]
|
||||
then
|
||||
npm run build:dll
|
||||
fi
|
||||
}
|
||||
cd $base
|
||||
npm install --registry=https://registry.npm.taobao.org && \
|
||||
build_vendor_dll && \
|
||||
npm run build
|
||||
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Build error, please check node version and package.json"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
exec nginx -c /OJ_FE/deploy/nginx.conf
|
||||
Reference in new issue
Block a user