MERN Stack project Running Very slow
romeroholloway
PROOP

4 months ago

My site is Running extremely slow on other machines and was wondering is there any specific settings I need to make it run faster?

Solved$10 Bounty

17 Replies

Railway
BOT

4 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


brody
EMPLOYEE

4 months ago

This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.

Status changed to Open brody 4 months ago


noahd
EMPLOYEE

4 months ago

Hey there!
For your MERN stack is your DB being run on Railway or are you using another service?
On that, is your DB connection over the private or public URL? That usually a pain point which might add some overhead.

Any other info you're able to provide on your service would be awesome! Would be happy to help


romeroholloway
PROOP

4 months ago

its running on a different service. should i connect mongo db instead of using the url in the code?


noahd

Hey there!For your MERN stack is your DB being run on Railway or are you using another service? On that, is your DB connection over the private or public URL? That usually a pain point which might add some overhead. Any other info you're able to provide on your service would be awesome! Would be happy to help

romeroholloway
PROOP

4 months ago

its running on a different service. should i connect mongo db instead of using the url in the code?


romeroholloway

its running on a different service. should i connect mongo db instead of using the url in the code?

noahd
EMPLOYEE

4 months ago

Well when I say a different service I mean, is your Mongo DB hosted on mongo's servers.
If it's hosted on https://www.mongodb.com/ I'd highly suggest hosting it on your Railway project.


noahd

Well when I say a different service I mean, is your Mongo DB hosted on mongo's servers. If it's hosted on https://www.mongodb.com/ I'd highly suggest hosting it on your Railway project.

romeroholloway
PROOP

4 months ago

ahh ok is there any documentation on connecting an already running mongodb database to my current project?


romeroholloway

ahh ok is there any documentation on connecting an already running mongodb database to my current project?

noahd
EMPLOYEE

4 months ago

In your service it should ask for a "connection URL".
Once your mongo DB is deployed on Railway head over to the Variables tab and use the MONGO_URL field.

Attachments


romeroholloway
PROOP

4 months ago

ok I did that and attempted to use other devices and the site wont load. i have no problem using the site on my production machine but on others it stuck loading to site


romeroholloway

ok I did that and attempted to use other devices and the site wont load. i have no problem using the site on my production machine but on others it stuck loading to site

noahd
EMPLOYEE

4 months ago

If you're able to provide the URL for the project that'd be great. Happy to take a peek and see if its loading on my end.

Are you using a custom domain or a railway generated one? On that, have you since redeployed the services to take effect?


romeroholloway
PROOP

4 months ago

https://www.corptort.com/ i am using a custom domain


noahd

If you're able to provide the URL for the project that'd be great. Happy to take a peek and see if its loading on my end. Are you using a custom domain or a railway generated one? On that, have you since redeployed the services to take effect?

romeroholloway
PROOP

4 months ago

https://www.corptort.com/ i am using a custom domain


noahd
EMPLOYEE

4 months ago

It's loading perfectly fine on my end! Are you using cloudflare for DNS management?
I'd suggest clearing your cache there


romeroholloway
PROOP

4 months ago

i am actually not i am using namecheap


romeroholloway

i am actually not i am using namecheap

noahd
EMPLOYEE

4 months ago

I personally highly suggest Cloudflare! You get a much better level of control using it.
On that though, if you wait 5-10 minutes it'll probably refresh cache and work fine.

On the other devices I suggest just waiting or clearing cache and reloading.


noahd

I personally highly suggest Cloudflare! You get a much better level of control using it. On that though, if you wait 5-10 minutes it'll probably refresh cache and work fine. On the other devices I suggest just waiting or clearing cache and reloading.

romeroholloway
PROOP

4 months ago

its working now lol. thanks for your help it was really apricated!


romeroholloway
PROOP

4 months ago

and I was planning on scaling to them eventually once this app grows and makes some profit


romeroholloway

and I was planning on scaling to them eventually once this app grows and makes some profit

noahd
EMPLOYEE

4 months ago

If you have time, I'd honestly suggest switching over to Cloudflare whenever you can! It's very easy and painless. Highly recommend!

Happy I could help and good luck shipping!


Status changed to Solved noahd 4 months ago


Loading...