I have read that serverside, you cant use DOM. I’ve created a web application using DOM and I wonder what needs to be done to reproduce this code to make it work on a server, so the people on the internet can work with it. Here is a little peak of a code:
I’m running a clustered nodejs production API using PM2 and I have concerns about performance. I’ve read through the PM2 docs but I’m not seeing much about performance optimization.
I have a
puppeteer script that I am running on production using
PM2. I need to restart it when the last job is a success or failure. Each bot instance is a cluster of 22 more bots.
I want to restart it whenever it is finished.
I have project which built by NestJs and I want to change my some datas in every 24 hours, I’ve decided to use CronJob for that. But when I run my project by pm2(on different clusters), CronJob works once for every cluster and totally it works for cluster count (if I have 8 cluster, it works 8 times). How can I find central point which pm2 doesn’t separates that and my codes works only one time?
I want to start my script with pm2 in Windows, but I get the error:
SyntaxError: Unexpected token ':'
My CRA ReactJS project will work with my .env file and all the stuff I put in the file in development mode aka (my computer), but then when I try to deploy the code to my production server which uses PM2. I have a JS file that deploys the code to the server and builds it on the server, then calls for the app.config.json file that actually runs the web server, but only the NODE_ENV and PORT work, anything I use with REACT_APP_(whatever) doesn’t and it just gives me undefined or null (depending on how I call the process.env)
I am using
pm2 (5.1.2) and
serve (13.0.2) to deploy a Node.js app. When I run the following:
I have a Discord bot written in
discord.js. I created a referral system so that everyone can create a copy of my Discord bot with their own token, but there was a small problem. I don’t know how to run a copy of my Discord bot through a proxy so that there are several identical bots from one VPS, but with different tokens and with different proxies.
can’t use adapter with socket io in production although it’s running in development : https://i.stack.imgur.com/eiyLf.png : https://i.stack.imgur.com/R3LCj.png : https://i.stack.imgur.com/Ncrog.png Answers: Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful … Read more
I installed pm2 with NPM without the global flag. Then I started the app with “npm start” that declared on