D
Dokploy•10mo ago
Hugo

Astro Static Website

Is there a way to deploy a static astro website on Dokploy ?
15 Replies
Vlad
Vlad•10mo ago
Create an application, provide the source code of the website and choose nixpacks as a build type. It will automatically detect that it's astro and run it as astro projects are run. Also as far as I know you will have to change the config of the project a bit
Hugo
HugoOP•10mo ago
So sorry for bothering you, I found out by my self 😅 Thank you so much for the fast reply tho !
Vlad
Vlad•10mo ago
No worries, you're welcome
Hugo
HugoOP•10mo ago
Could this be put in the docs ? I was clearly overthinking it because it isn't marked like that in it...
Vlad
Vlad•10mo ago
I don't think so, it's pretty obvious, you just follow the steps
Hugo
HugoOP•10mo ago
I feel like the most confusing part for me was the fact that there is an "Astro" section and an "Astro SSR" with the same infos... Also I think that the config of the "Publish Directory" is not that obvious for beginner Note that these infos are not even mentioning the port to expose
Siumauricio
Siumauricio•10mo ago
GitHub
examples/astro-ssr at main · Dokploy/examples
Examples to deploy on Dokploy. Contribute to Dokploy/examples development by creating an account on GitHub.
Siumauricio
Siumauricio•10mo ago
GitHub
examples/astro at main · Dokploy/examples
Examples to deploy on Dokploy. Contribute to Dokploy/examples development by creating an account on GitHub.
Siumauricio
Siumauricio•10mo ago
@Hugo At the time when we create the examples we didn't have the publish directory functionality
Hugo
HugoOP•10mo ago
those ressources are unless for static website as I told you earlier I'm now trying to make the auto deploy work but the doc is again not very precise and the only video i found is outdated ... I don't quite understand the webhook part is it setup automatically by the github app ?
Siumauricio
Siumauricio•10mo ago
the autodeploy for github is automatic so you don't need to do anything
Hugo
HugoOP•10mo ago
ok cool ! but what if it is not ? i don't know if it can help debug ... it was the ui
Hugo
HugoOP•10mo ago
i'm sorry but for me this means activate autodeploy (like the rebuild button that trigger the build)
No description
Hugo
HugoOP•10mo ago
could you either add a "x" on the off state or even better change it to a checkbox or a toggle ?
Hugo
HugoOP•4mo ago
Hey congrats for all the imporvements on dokploy !! I see that there is now a toggle for the autodeploy button 👀 Unfortunately, I got the same problem that last time because I didn't document it ahah So I'm putting my solution here this time. Could someone add a "Astro static" page in the docs with this config ?
No description
No description

Did you find this page helpful?