sagarankoliya / realtime-private-chat-nodejs-socketio-vuejs-laravel

Realtime Private Chat NodeJS SocketIO Vue JS Laravel
82 stars 34 forks source link

Run the App on Server and Configuration #24

Closed mohsen4p closed 2 years ago

mohsen4p commented 2 years ago

Thank you for great chat application, I ran it On local host by laragon. But i tried to ran on VPS server and couldn't. please give us a step by step to use this great application.

sagarankoliya commented 2 years ago

Hi,

All steps are given in readme.md file, and also what type of issue are you facing on VPS

mohsen4p commented 2 years ago

hi all the step running great at local system by laragon but when I run it on VPS the chat services didn't sync and say connection error, i think client side try to connect with vps 80 port not 3000 that socket listening. please help me I implement on vps in step by step

sagarankoliya commented 2 years ago

Hi,

You need to set below laravel env

WS_URL=http://YOUR IP HERE:3000/

And also start node server on http://YOUR IP HERE:3000 instead on http:// localhost:3000

On vps 3000 port must open, and node server must running on ip instead of localhost

Thanks,

mohsen4p commented 2 years ago

thanks, you are great...