Node.js + Express (I need help to deploy)
lasthasagi
HOBBYOP

2 years ago

Im having trouble when I deploy my node project (venom-bot)

47 Replies

brody
EMPLOYEE

2 years ago

what issues are you running into?


lasthasagi
HOBBYOP

2 years ago

When I deploy the project, I need to acess de route /, but I cant
'Application failed to respond'

But its running at the terminal


lasthasagi
HOBBYOP

2 years ago

If you guys need to see the code, I can send here


brody
EMPLOYEE

2 years ago

please read this docs page -


lasthasagi
HOBBYOP

2 years ago

I'm gonna test this


lasthasagi
HOBBYOP

2 years ago

Same error again…


lasthasagi
HOBBYOP

2 years ago

It didnt work


brody
EMPLOYEE

2 years ago

please show me what you have changed in your code after reading that docs page


lasthasagi
HOBBYOP

2 years ago

ok


lasthasagi
HOBBYOP

2 years ago

const port = process.env.PORT || 3000;

app.listen(port, '0.0.0.0', () => {
console.log(Server is running on [http://0.0.0.0:${port}](http://0.0.0.0:${port}));
});


brody
EMPLOYEE

2 years ago

looks fine, have you commited the changes to github


lasthasagi
HOBBYOP

2 years ago

Yes…


lasthasagi
HOBBYOP

2 years ago

Do you want to see the full code?


brody
EMPLOYEE

2 years ago

yeah, could you share the repo if possible?


lasthasagi
HOBBYOP

2 years ago

Its using Express


lasthasagi
HOBBYOP

2 years ago

Yep, I can share it, just a sec


lasthasagi
HOBBYOP

2 years ago


lasthasagi
HOBBYOP

2 years ago

Here it is


brody
EMPLOYEE

2 years ago

looking


lasthasagi
HOBBYOP

2 years ago

okay


brody
EMPLOYEE

2 years ago

i see that your package.json is missing a start script, how are you configuring railway to start this app?


lasthasagi
HOBBYOP

2 years ago

I just pushed this to railway website…
I just saw a video on youtube and did the same, I normaly use Procfile in python projects


brody
EMPLOYEE

2 years ago

this repo is not using a Procfile, how are you configuring railway to start this app?


lasthasagi
HOBBYOP

2 years ago

I didn't configure it, I just put the repository on github, went to railway and deployed


lasthasagi
HOBBYOP

2 years ago

I'm gonna change the package.json and see if it works


lasthasagi
HOBBYOP

2 years ago

thankssss


brody
EMPLOYEE

2 years ago

before you do that


brody
EMPLOYEE

2 years ago

please send me your build and deploy logs -


lasthasagi
HOBBYOP

2 years ago

My discord just crashed, I'm using opera gx, how can I do this?


brody
EMPLOYEE

2 years ago

use chrome


brody
EMPLOYEE

2 years ago

ditch opera gx


lasthasagi
HOBBYOP

2 years ago

ok


lasthasagi
HOBBYOP

2 years ago


brody
EMPLOYEE

2 years ago

oh I'm sorry but I had just noticed that this is a WhatsApp bot, WhatsApps bots are not allowed on this platform, I won't be able to provide further assistance and I would recommend you find somewhere else to host this as other users have been banned for running WhatsApp bots


lasthasagi
HOBBYOP

2 years ago

HOLY SHIT


lasthasagi
HOBBYOP

2 years ago

OK


lasthasagi
HOBBYOP

2 years ago

I'M SORRY


lasthasagi
HOBBYOP

2 years ago

Im gonna delete this!!!! Im so sorry


brody
EMPLOYEE

2 years ago

that's not why it's not working, I just can't provide further assistance


lasthasagi
HOBBYOP

2 years ago

Ok


brody
EMPLOYEE

2 years ago

thank you for understanding


lasthasagi
HOBBYOP

2 years ago

Thanks for your assist and i gonna delete this


lasthasagi
HOBBYOP

2 years ago

Thanks man


lasthasagi
HOBBYOP

2 years ago

S2


brody
EMPLOYEE

2 years ago

I would recommend telegram bots instead, you can host those here without issues


lasthasagi
HOBBYOP

2 years ago

Ok, I'm gonna try with telegram


lasthasagi
HOBBYOP

2 years ago

thanks man


Loading...