R
Join ServerRailway
✋|help
How to connect to my Soketi project in Railway
Based on the example of using Pusher in the website [soketi.app](https://soketi.app/), how do I get the
wsHost
and wsPort
after deploying the Soketi template in Railway? My project that will be connecting to this Soketi is a create-t3-app.let client = new PusherJS('app-key', {
wsHost: '127.0.0.1',
wsPort: 6001,
forceTLS: false,
encrypted: true,
disableStats: true,
enabledTransports: ['ws', 'wss'],
})
d740978b-74b7-426a-8f52-07ff6d546ac8
Solution
wsHost: '0.0.0.0',
wsPort: process.env.PORT | 6001,
Do I need to also host my create-t3-app in Railway because currently it is deployed in Vercel
you can host your app wherever you want
that's up to you
Ok I will try to use these values
I just realized this how do I run my Soketi in my local machine?
I have docker but when I run nixpacks build it tells me
Nixpacks was unable to generate a build plan for this app.
Please check the documentation for supported languages: https://nixpacks.com
The contents of the app directory are:
Dockerfile
README.md
ah yes good point
that way when there's no environment variable PORT it will fallback to
process.env.PORT | 6001
that way when there's no environment variable PORT it will fallback to
6001
if you are using a dockerfile you have to use the docker builder, nixpacks has nothing to do with building images starting from dockerfiles