DokployD
Dokploy2y ago
1 reply
Eight8

Astro Deployment Issue with Dokploy

I'm experiencing issues deploying an Astro project using Dokploy. Here are the details:

1. Dokploy version: v0.6.1
2. Configuration in astro.config.mjs:
   server: {
     port: 3000,
     host: true
   }

3. Deployment settings:
- Branch: main
- Build Path: /
- Build Type: Nixpacks
- Publish Directory: dist

4. The deployment was successful, with logs showing:
   
#12 101.5 14:23:12 [build] Complete!
#12 

#15 exporting to image
#15 exporting layers
#15 exporting layers 2.1s done
#15 writing image sha256:04a2726a25199aa9b4004185520d9166cea44477e6fc2c35eb04746ce2488a10 done
#15 naming to docker.io/library/guanwang-astro-11e4f4 done
#15 DONE 2.1s

 2 warnings found (use docker --debug to expand):
 - UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)
 - LegacyKeyValueFormat: "ENV key=value" should be used instead of legacy "ENV key value" format (line 18)
=== Successfully Built! ===



#7 [3/3] COPY dist .
#7 DONE 0.1s

#8 exporting to image
#8 exporting layers 0.0s done
#8 writing image sha256:9cfbbb2c02a01f0b154f2afba7062e77d6208e9eb6dd776882f51a25061eb434 done
#8 naming to docker.io/library/guanwang-astro-11e4f4 done
#8 DONE 0.1s
Docker Deployed: ✅


However, I'm unable to access the website at https://guanwang-astro-11e4f4-0ddcfe-47-239-230-180.traefik.me/. It shows a "Bad Gateway" error.

Can you help me identify the cause of this issue and suggest potential solutions? Thank you!
Was this page helpful?