Hello, and thanks for your time.
I am very new to cloud and there are a lot of things I don’t understand.
We bought a wordpress theme that has a chat integrated with node and socket.io.
I already created my droplet with LEMP and installed wordpress and node.js but according to the theme’s documentation I need to run a server.js file that the theme has on it’s files.
(https://amentotech.ticksy.com/article/14850/)
Can someone please help me out? I’ve been googling for 2 days now but I don’t think i’m typing the right querys because i would’ve found the answer by now.
You can just point me in the right direction and I will find the answer if you like :D
Thanks
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello,
Indeed the instructions are not very clear.
What you need to do is:
SSH to your Droplet
Then cd to the directory of your theme:
cd /var/www/html/wp-content/themes/name-of-your-theme/js
Note that you would need to adjust the path in case that your website is not stored at the /var/www/html folder and also adjust the name of your theme part.
server.js file just run:node server.js
The problem with that approach is that as soon as you close your SSH session the process would stop. So what I could suggest instead is to use PM2, you could take a look at this tutorial here on how to do that:
Hope that this helps! Regards, Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.