Docusaurus Documentation App

Could someone help me with the deployment for a docusaurus doc app?
No description
No description
Solution:
https://github.com/brody192/docusaurus-template copy the nixpacks.toml and Caddyfile from this repo into yours make sure you have not set any build or start commands in the service settings...
Jump to solution
64 Replies
Percy
Percy14mo ago
Project ID: f4ffaf00-bf8e-4fc7-8e95-9d64d9995b8d
danielthames
danielthamesOP14mo ago
f4ffaf00-bf8e-4fc7-8e95-9d64d9995b8d
Medim
Medim14mo ago
Could u please provide ur full logs? https://bookmarklets.up.railway.app/log-downloader/ You can use this bookmarklet to get them
danielthames
danielthamesOP14mo ago
No description
danielthames
danielthamesOP14mo ago
Ok, will do that!
Medim
Medim14mo ago
May be a silly question, but did u set the PORT env var to 3000?
danielthames
danielthamesOP14mo ago
not really! I'm not working with any .env variable; this an open doc app That's why I wanted to show my package.json
danielthames
danielthamesOP14mo ago
awesome log retrieval btw
danielthames
danielthamesOP14mo ago
I have seen that someone has worked with docker for docusaurus I am not very expert in it 😔
Brody
Brody14mo ago
there is a Docusaurus template already, but just after giving it a brief lookover, there is problems with it ill see what i can whip up in the coming days though
danielthames
danielthamesOP14mo ago
All right @Brody! Thank you very much I'll see what I can do as well
Brody
Brody14mo ago
some tips, Docusaurus does not have its own way of running a server for production, neither start nor serve are suitable for running on railway, this is why the current template tries to use nginx but leaves out a config to properly serve a single page app
danielthames
danielthamesOP14mo ago
gotcha! ty Hey @Brody ! I have some doubts and I have some personal info here. Can we have a private room or something like that?
Brody
Brody14mo ago
what personal info??
danielthames
danielthamesOP14mo ago
There's a template for static site. I have added it, and then I found that there are variables for that empty site. I'm not sure if this is taking this info automatically based on my workspace/architecture/services because the credentials are the same like my producction DB. The point is that I thought this was maybe an empty space to publish the build of my docs Just like I do in github pages. The question is, Can I delete this site without any problem? Could it work?
No description
No description
No description
No description
Brody
Brody14mo ago
im sorry, i dont follow
danielthames
danielthamesOP14mo ago
Yes, I wrote the previous text as a poop 💩 sorry for that
danielthames
danielthamesOP14mo ago
Could you check my project and see if I can remove the site I have added without any problem? I got scared when I saw the credentials of my production db there added automatically.
No description
Brody
Brody14mo ago
are you using that sevice for anything
danielthames
danielthamesOP14mo ago
I was trying to add it because I thought it was something like an empty template for publishing static sites.
Brody
Brody14mo ago
it is
danielthames
danielthamesOP14mo ago
nop I've just added a few minutes ago; in order to publish my docs
Brody
Brody14mo ago
then you can delete it but for reference, you need to build nginx into your doc app
Brody
Brody14mo ago
or you could just use vercel? railway isny designed with hosting frontend apps in mind
danielthames
danielthamesOP14mo ago
Ok, that's fair
Brody
Brody14mo ago
but it 100% can be done on railway
danielthames
danielthamesOP14mo ago
I would like to do that this is my architecture and growing
danielthames
danielthamesOP14mo ago
No description
danielthames
danielthamesOP14mo ago
I am creating a backup of my db before deleting that scary site.
Brody
Brody14mo ago
i will make a Docusaurus app that can be deployed to railway in the coming days
danielthames
danielthamesOP14mo ago
Ok I will wait patiently ty
Solution
Brody
Brody14mo ago
https://github.com/brody192/docusaurus-template copy the nixpacks.toml and Caddyfile from this repo into yours make sure you have not set any build or start commands in the service settings
danielthames
danielthamesOP14mo ago
Hi Brody! let me try I don't have to modify anything in those files, right?
Brody
Brody14mo ago
you shouldnt, but that is only the default Docusaurus app, so yours might do something different
danielthames
danielthamesOP14mo ago
let me push these files to see what happens! also, empty build/start on the service
danielthames
danielthamesOP14mo ago
No description
Brody
Brody14mo ago
well if they are already empty thats great!
danielthames
danielthamesOP14mo ago
It's working now! ty so much 💪🏻💪🏼
Brody
Brody14mo ago
awsome!
danielthames
danielthamesOP14mo ago
No description
Brody
Brody14mo ago
happy i could help!
danielthames
danielthamesOP14mo ago
Hi @Brody! Could you help me with this?
No description
No description
No description
Brody
Brody14mo ago
i dont think caddy produces error pages like that, can you tell me more about your setup?
danielthames
danielthamesOP14mo ago
Someone from that IP forced the host? DDos? not sure at all
No description
danielthames
danielthamesOP14mo ago
Ok it is my documentation app which was working properly until today
Brody
Brody14mo ago
those requests have a status of 200, nothing wrong there please tell me more about your setup
danielthames
danielthamesOP14mo ago
No description
Brody
Brody14mo ago
works fine
danielthames
danielthamesOP14mo ago
I have generated the domain
Brody
Brody14mo ago
send me your custom domain so i dont have to type it out please
danielthames
danielthamesOP14mo ago
maybe a DNS issue? docs.qrupones.com mi front and back are working properly with the same config from goDaddy I have updated that 30min ago; maybe I need to wait more time? maybe 2 hours?
Brody
Brody14mo ago
also works fine
danielthames
danielthamesOP14mo ago
jummm maybe needs a propagation time? until reach my location ?
danielthames
danielthamesOP14mo ago
Ok, I'm going to wait...
No description
Brody
Brody14mo ago
use a better dns resolver like cloudflare or google
No description
danielthames
danielthamesOP14mo ago
Gotcha! Will se what happen and if it doesn't work; I'll jump to cloudflare ty Brody!
Brody
Brody14mo ago
you should do this anyway, it has nothing to do with your domain config, its a change you do in your router or phone @danielthames has the dns updated yet?
danielthames
danielthamesOP14mo ago
It's working now! but I haven't checked the cloudflare thing yet. I'll do that tomorrow morning! ty
Brody
Brody14mo ago
great!
Want results from more Discord servers?
Add your server