Local Hosting or VPS
Supports Debian/Linux/Ubuntu and others.
🚀 Running with Legacy Method
Get ready with the Mandatory Vars that we provided in the .env config file.
1. Upgrade and Update:
sudo apt update && apt upgrade -y2. Installing Required Packages
sudo apt install git curl python3-pip ffmpeg -y3. Setting up PIP
pip3 install -U pip4. Installing Node
curl -sL https://deb.nodesource.com/setup_16.x | bash -sudo apt-get install -y nodejsnpm i -g npm5. Installing Process Manager
npm install pm2@latest -g6. Clone the Repository & Open the Directory
git clone https://github.com/levina-lab/video-stream && cd video-stream7. Install Requirements
pip3 install -U -r requirements.txt8. Create .env with example.env
cp example.env .env9. Editing Vars in .env with your own Values
➣ read config doc and vars doc for this value !
vim .envPress i button on keyboard to start Editing vars.
Press Esc button on keyboard to exit from editing mode.
The type :wq! and Press Enter button on keyboard to save file and back to home.
10. Finally Run the Bot
python3 main.pyTo stop the process press Ctrl + C button on Keyboard.
The python3 main.py command will only run the code as long as you still have the vps open, but when you close your vps the bot will stop working too.
pm2 start 'python3 main.py' --name=video-streamTo stop current process use: pm2 stop (session number)
To restart the bot use: pm2 restart (session number)
To use this command make sure if you're not out from video-stream directory, because you must in the directory to run this Command.
Last updated