coolify icon indicating copy to clipboard operation
coolify copied to clipboard

[Bug]: Getting Welcome to nginx! on deployment

Open AlejandroSanchez90 opened this issue 1 year ago • 5 comments

Error Message and Logs

Im trying to deploy a nextjs app, first time it worked good, i changed some names here and there and suddenly my deployment start showing Welcome to nginx! home screen, after a long trial and error i deleted this deployment to deploy a new one, but this one still shows the Welcome to nginx!

this is the setting of the deployment image

Steps to Reproduce

  1. load a next repo using github app
  2. fill env variables and deploy

Example Repository URL

No response

Coolify Version

v4.0.0-beta.360

Are you using Coolify Cloud?

No (self-hosted)

Operating System and Version (self-hosted)

Ubuntu

Additional Information

No response

AlejandroSanchez90 avatar Oct 13 '24 02:10 AlejandroSanchez90

if i deploy without changinganything else but the domain name and build/start commands, then it works, so the bug should be around changing name or toggling static site option, this is the config that works image

AlejandroSanchez90 avatar Oct 13 '24 03:10 AlejandroSanchez90

in your first image you had picked static site

djsisson avatar Oct 13 '24 12:10 djsisson

In the docs it say to pick static site for a nextjs app

On Sun, Oct 13, 2024, 7:29 AM Darren Sisson @.***> wrote:

in your first image you had picked static site

— Reply to this email directly, view it on GitHub https://github.com/coollabsio/coolify/issues/3904#issuecomment-2408960824, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6NKLAVYSKMI4I3RSP36FUTZ3JRUNAVCNFSM6AAAAABP27OIGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBYHE3DAOBSGQ . You are receiving this because you authored the thread.Message ID: @.***>

AlejandroSanchez90 avatar Oct 13 '24 16:10 AlejandroSanchez90

@AlejandroSanchez90 if it has no ssr, you can use static, but you would need to set publish directory to /out not /

djsisson avatar Oct 13 '24 16:10 djsisson

Got it thanks!

On Sun, Oct 13, 2024, 11:38 AM Darren Sisson @.***> wrote:

@AlejandroSanchez90 https://github.com/AlejandroSanchez90 if it has no ssr, you can use static, but you would need to set publish directory to /out not /

— Reply to this email directly, view it on GitHub https://github.com/coollabsio/coolify/issues/3904#issuecomment-2409044179, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6NKLAV3BC7ZE4AZXCT6QGTZ3KOZNAVCNFSM6AAAAABP27OIGSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBZGA2DIMJXHE . You are receiving this because you were mentioned.Message ID: @.***>

AlejandroSanchez90 avatar Oct 13 '24 16:10 AlejandroSanchez90