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