Replies: 4 comments
-
Not sure where your problem is exactly, but I can offer some advice:
|
Beta Was this translation helpful? Give feedback.
-
A couple additional notes: The instructions on the docker page, as I mentioned, are designed to provide you with a "build and serve" solution. There are a couple more use cases that the help page does not cover: Just ServeIf you have already built your documentation, or plan on building it locally without docker, you can use a Dockerfile like this:
Then, you can run it with or without volume mount:
(assuming your rendered documentation is in Retype CLI in DockerIf you just wish to have the
(which is the first half of the Dockerfile in the help page + an then you can run it with:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your exhaustive reply @DannyBen For the So, It perfectly works when files are in the same folder. But what if I have a synchronized folder with Git? The best would be to just watch for new files and update the website accordingly. I tried your last solution, I did:
But suddently, It wants to run on port 5000. So I did:
But It is still not accessible. :'( Yeah, you guessed it, I'm not good with Dockerfile. |
Beta Was this translation helpful? Give feedback.
-
Okay, I tried somethings, but Docker compose doesn't set it up:
where the image has been built with:
I guess you know where I want to go. I just want to build it once, let retype watch new files, and forget it. But problems:
|
Beta Was this translation helpful? Give feedback.
-
Hi,
Okay, so, I have several questions.
First of all, I did build the Dockerfile like explained here. It starts perfectly, good. It just displays a single welcome page, It seems correct here.
Now, I try to map a volume from an accessible folder (containing few markdown files) to
/usr/local/apache2/htdocs/
, such:sudo docker container run --rm -p -v /volume1/master/markdown_test/:/usr/local/apache2/htdocs/ 49194:80 name/retype
But here, I have an error, access denied.
I see there's some kind of
retype.yml
file to give some directives to retype. But where should this file be?And by the way, commands
retype
,dotnet
,yarn
, etc. are "not found".I'm highly confused about this. Any help please?
Beta Was this translation helpful? Give feedback.
All reactions