Answer the question
In order to leave comments, you need to log in
How to install Forever node js on virtual hosting?
Good afternoon friends, there is a Node.js script, the script is very demanding on the speed of the Internet, so I run it on a hosting, a regular shared hosting.
How would I add the forever module there, I installed it on the PC through the command in the console and everything works fine, without any settings at all, but my Internet channel is small, 100 Mbps, and this bot accelerates to 500 Mbps, and everything that is connected to this Internet hangs, and only the bot is restarted.
===
On the hosting I have the same folder with the bot, there is a node_modules folder, but on the windows version - after installation through the command in the console - there is no forever module in this folder so that I can simply transfer it via FTP.
=============
For PC it is installed like this:
Step 1 open the console in the folder with the script via cmd in the address bar and write there.
npm install forever -g
Step 2 write in the same place (name.js is the name of my script)
forever start name.js
Step 3 you can close the console, but to stop you need to write
forever stop name.js
========= ===
Here you are interested in installing this scheme on Wirth hosting.
===========
Well, the question is one more question, is it possible to somehow encrypt the bot so that the name, address, database login are not visible, so that I can put it on other hosting accounts or computers (on my naturally , not to someone else's, but so that another user cannot see this data).
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question