Can't deploy from git branch (private organization and repo)

any idea why deployments aren't starting up? I just started using Dokploy and hooked it up with my Github on a DigitalOcean Droplet, setup all the correct env vars and Git app
No description
20 Replies
sptzk
sptzk3mo ago
can you provide some screenshot how you set up the service?
𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶OP3mo ago
which screenshot would help troubleshoot?
𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶OP3mo ago
No description
sptzk
sptzk3mo ago
so the build error causing while cant find the source dir of your app how is ur repo structured? maybe u need to adapt the "Build path" option in dokploy
𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶OP3mo ago
oh I see so I have to put /src?
No description
𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶OP3mo ago
hmm tried that and there's progress...
No description
𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶OP3mo ago
but it's weird that it doesn't detect it's a Next.js project
sptzk
sptzk3mo ago
didnt worked with nextjs yet, maybe this helps: https://docs.dokploy.com/docs/core/nextjs
Next.js | Dokploy
Deploy a simple Next.js application.
sptzk
sptzk3mo ago
here they dont reference the path to /src
𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶OP3mo ago
yeah same issue 😦
No description
𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶OP3mo ago
@Siumauricio maybe the docs aren't clear, but you just specify your src directory right?
sptzk
sptzk3mo ago
this example repo from dokploy got many of examples, the reference to /nextjs is only because the root repo contains other folders for other languages
𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶OP3mo ago
hmm so it's actually the base dir then? like if my repo is the only thing running on that server, you just do /
DJKnaeckebrot
DJKnaeckebrot3mo ago
whats you build command in the package.json?
𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶OP3mo ago
No description
DJKnaeckebrot
DJKnaeckebrot3mo ago
its a payload app? I remember some ppl having issues with that
𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶OP3mo ago
yeah it is
DJKnaeckebrot
DJKnaeckebrot3mo ago
you can try adding some forced commands for nixpacks into your environment https://nixpacks.com/docs/configuration/environment maybe one of that work
Environment | Nixpacks
App source + Nix packages + Docker = Image
DJKnaeckebrot
DJKnaeckebrot3mo ago
and i guess local pnpm build works fine?
𖤬𝔫𝔡𝔶
𖤬𝔫𝔡𝔶OP3mo ago
yeah locally nixpack should support it I'd assume

Did you find this page helpful?