Astro Static Website
Is there a way to deploy a static astro website on Dokploy ?
15 Replies
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
So sorry for bothering you, I found out by my self 😅
Thank you so much for the fast reply tho !
No worries, you're welcome
Could this be put in the docs ? I was clearly overthinking it because it isn't marked like that in it...
I don't think so, it's pretty obvious, you just follow the steps
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
for astro SSR https://github.com/Dokploy/examples/tree/main/astro-ssr
GitHub
examples/astro-ssr at main · Dokploy/examples
Examples to deploy on Dokploy. Contribute to Dokploy/examples development by creating an account on GitHub.
for normal astro https://github.com/Dokploy/examples/tree/main/astro
GitHub
examples/astro at main · Dokploy/examples
Examples to deploy on Dokploy. Contribute to Dokploy/examples development by creating an account on GitHub.
@Hugo At the time when we create the examples we didn't have the publish directory functionality
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 ?
the autodeploy for github is automatic so you don't need to do anything
ok cool !
but what if it is not ?
i don't know if it can help debug
...
it was the ui
i'm sorry but for me this means activate autodeploy (like the rebuild button that trigger the build)

could you either add a "x" on the off state or even better change it to a checkbox or a toggle ?
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 ?

