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
Percy9mo ago
Project ID: f4ffaf00-bf8e-4fc7-8e95-9d64d9995b8d
danielthames
danielthames9mo ago
f4ffaf00-bf8e-4fc7-8e95-9d64d9995b8d
Medim
Medim9mo ago
Could u please provide ur full logs? https://bookmarklets.up.railway.app/log-downloader/ You can use this bookmarklet to get them
danielthames
danielthames9mo ago
No description
danielthames
danielthames9mo ago
Ok, will do that!
Medim
Medim9mo ago
May be a silly question, but did u set the PORT env var to 3000?
danielthames
danielthames9mo 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
danielthames9mo ago
awesome log retrieval btw
danielthames
danielthames9mo ago
I have seen that someone has worked with docker for docusaurus I am not very expert in it 😔
Brody
Brody9mo 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
danielthames9mo ago
All right @Brody! Thank you very much I'll see what I can do as well
Brody
Brody9mo 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
danielthames9mo 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
Brody9mo ago
what personal info??
danielthames
danielthames9mo 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
Brody9mo ago
im sorry, i dont follow
danielthames
danielthames9mo ago
Yes, I wrote the previous text as a poop 💩 sorry for that
danielthames
danielthames9mo 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
Brody9mo ago
are you using that sevice for anything
danielthames
danielthames9mo ago
I was trying to add it because I thought it was something like an empty template for publishing static sites.
Brody
Brody9mo ago
it is
danielthames
danielthames9mo ago
nop I've just added a few minutes ago; in order to publish my docs
Brody
Brody9mo ago
then you can delete it but for reference, you need to build nginx into your doc app
Brody
Brody9mo ago
or you could just use vercel? railway isny designed with hosting frontend apps in mind
danielthames
danielthames9mo ago
Ok, that's fair
Brody
Brody9mo ago
but it 100% can be done on railway
danielthames
danielthames9mo ago
I would like to do that this is my architecture and growing
danielthames
danielthames9mo ago
No description
danielthames
danielthames9mo ago
I am creating a backup of my db before deleting that scary site.
Brody
Brody9mo ago
i will make a Docusaurus app that can be deployed to railway in the coming days
danielthames
danielthames9mo ago
Ok I will wait patiently ty
Solution
Brody
Brody9mo 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
danielthames9mo ago
Hi Brody! let me try I don't have to modify anything in those files, right?
Brody
Brody9mo ago
you shouldnt, but that is only the default Docusaurus app, so yours might do something different
danielthames
danielthames9mo ago
let me push these files to see what happens! also, empty build/start on the service
danielthames
danielthames9mo ago
No description
Brody
Brody9mo ago
well if they are already empty thats great!
danielthames
danielthames9mo ago
It's working now! ty so much 💪🏻💪🏼
Brody
Brody9mo ago
awsome!
danielthames
danielthames9mo ago
No description
Brody
Brody9mo ago
happy i could help!
danielthames
danielthames9mo ago
Hi @Brody! Could you help me with this?
No description
No description
No description
Brody
Brody9mo ago
i dont think caddy produces error pages like that, can you tell me more about your setup?
danielthames
danielthames9mo ago
Someone from that IP forced the host? DDos? not sure at all
No description
danielthames
danielthames9mo ago
Ok it is my documentation app which was working properly until today
Brody
Brody9mo ago
those requests have a status of 200, nothing wrong there please tell me more about your setup
danielthames
danielthames9mo ago
No description
Brody
Brody9mo ago
works fine
danielthames
danielthames9mo ago
I have generated the domain
Brody
Brody9mo ago
send me your custom domain so i dont have to type it out please
danielthames
danielthames9mo 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
Brody9mo ago
also works fine
danielthames
danielthames9mo ago
jummm maybe needs a propagation time? until reach my location ?
danielthames
danielthames9mo ago
Ok, I'm going to wait...
No description
Brody
Brody9mo ago
use a better dns resolver like cloudflare or google
No description
danielthames
danielthames9mo ago
Gotcha! Will se what happen and if it doesn't work; I'll jump to cloudflare ty Brody!
Brody
Brody9mo 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
danielthames9mo ago
It's working now! but I haven't checked the cloudflare thing yet. I'll do that tomorrow morning! ty
Brody
Brody9mo ago
great!