Skip to content

Latest commit

 

History

History
54 lines (35 loc) · 2.44 KB

DEPLOY.md

File metadata and controls

54 lines (35 loc) · 2.44 KB

How to deploy WBOT on DigitalOcean?

  1. Visit Here and create an account. you'll get $200 worth of free credits for 2 months. You can thank me for that later 😉

  2. After creating an account you will see a page like below. Click on 'Deploy a virtual machine'.

    vm-ss

  3. This will take you to a page like below. Select 'Spin up a Droplet'.

    Screenshot (55)

  4. Now, you need to select the specifications for the droplet. First select the server location that is closest to you. For instance, if you are in India, choose the Bangalore server.

    Screenshot (56)

  5. Choose the ubuntu operating system with version 22 LTS. The CPU specifications are up to you. but we recommand you go with atleast 1 GB of RAM.

    Screenshot (57)

  6. For the authentication, choose the password method and create one according to the requirements. Make sure to remember this password or copy it somewhere safe.

  7. Finally, click on 'Create Droplet'. Your droplet had been created. Copy the ipv4 address of the droplet.

  8. Now open the terminal on your device and give the following command.

ssh root@[your_ipv4_address]

Replace [your_ipv4_address] with the ipv4 address you copied. You will be asked the password you just made. You will not be able to see what you are typing, but don't worry! You will be authenticated if you enter the correct password.

If this command doesn't work in your machine then you can go to digitalOcean and click on console. you can do rest of the commands there as well.

  1. Clone our WBOT repository and move to that directory.
git clone https://github.com/vasani-arpit/WBOT.git
cd WBOT
  1. Run the following command to install requirements.
sh setup/setup.sh
  1. After you get the 'Setup Complete' message, you can run the WBOT using this command.
npm start
  1. You can graphically modify bot.json as well as view the current day's messages by going to your browser and entering the following site in the address bar.
[your_ipv4_address]:8080