diff --git a/monitor/setup/serverlite.sh b/monitor/setup/serverlite.sh index f6aa70b..57e0ab6 100644 --- a/monitor/setup/serverlite.sh +++ b/monitor/setup/serverlite.sh @@ -103,54 +103,6 @@ sudo a2enmod rewrite sudo service apache2 restart # sudo echo "* * * * * php /var/www/html/BiFace_Server_Lite/yii sync" >> /var/spool/cron/crontabs/root # -cd /root -git clone http://gitea.beetai.com/dongpd/BiFace_Server_Config_API.git - - -#sudo apt-get install -y nodejs npm -#sudo apt-get install -y nodejs-dev node-gyp libssl1.0-dev -#sudo apt install -y npm - -curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash -chmod +x ~/.nvm/nvm.sh -. ~/.bashrc - -nvm install 16 - -npm install pm2@5.4.2 -g n -#sudo n stable -pm2 install pm2-logrotate - -cd BiFace_Server_Config_API -npm install - -cd /root/monitor/setup/ -pm2 ecosystem -echo " -module.exports = { - apps : [ - { - name: 'Server_lite', - cwd: '/root/BiFace_Server_Config_API', - script: 'server.js', - args: '', - interpreter: 'node', - restart_delay: 1000, - cron_restart: '0 0 * * *', - watch: false, - time: true - } -] -}; -" > ecosystem.config.js -pm2 reload ecosystem.config.js - -pm2 startup -pm2 save - -#cd BiFace_Server_Config_API -#npm install -sudo bash /etc/rc.local cd /var/www/html/BiFace_Server_Lite sudo chmod 0777 db/app.db