Commit c5ad48a1 authored by lvweichao's avatar lvweichao

update: script

parent 19236d1b
......@@ -5,13 +5,13 @@ mv /opt/project_lib/node_modules /home/services/op-web-service/htdocs/
env=$1
port=$2
if [ X"$port" = X];then
if [ X"$port" == X"" ];then
port=8055
fi
cd /home/services/op-web-service/htdocs/
if [ X"$env" = X"prod" ];then
if [ X"$env" == X"prod" ];then
echo "{\"pm2-logrotate\":{\"max_size\":\"524288000\",\"interval\":\"7\",\"retain\":\"10\"},\"module-db\":{\"pm2-logrotate\":true}}" > /root/.pm2/module_conf.json
pm2 start pm2.json
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment