Coolify Deployment Issues
Unanswered
Somali posted this in #help-forum
SomaliOP
Hello, I am attempting to launch my next.js project onto my coolify dashboard to host it on a domain, but for some reason all i get is "Internal Server error" when i go to the website all that prints out in coolify is
I have no idea how to make it go towards the domain and not localhost
> vermillion@0.1.0 start
> next start
▲ Next.js 15.0.3
- Local: http://localhost:3000
✓ Starting...
✓ Ready in 904ms
I have no idea how to make it go towards the domain and not localhost
60 Replies
and does this work well in your local?
@James4u and does this work well in your local?
SomaliOP
yes
on my domain
i have plenty of other projects on there
my website is on there
@Somali yes
do you mind sharing your home page codebase?
SomaliOP
the next js project?
yeah
@Somali coolify
I am new to coolify but you should have a place to see the server logs
if you don't provide codebase or show me the server logs, I am not able to help you
@Somali i showed logs
??? it's your local terminal I guess
SomaliOP
it’s not
😭
that’s the thing
that’s from coolify
@James4u ??? it's your local terminal I guess
SomaliOP
anyways which file were you looking for exactly , i’m only on my phone rn so i can only see github app but i published everything right before bed and i can still edit here so
/src/page.tsx
@James4u `/src/page.tsx`
SomaliOP
i don’t have a src folder
okay then I think it can be (root)/page.tsx
@Somali
SomaliOP
import React from 'react'
import {HeaderBox} from "@/components/HeaderBox";
import TotalBalanceBox from "@/components/TotalBalanceBox";
import {RightSidebar} from "@/components/RightSidebar";
const Home = () => {
const loggedIn = { firstName: 'Beyonce' , lastName: "Knowles", email: "beyonce@gmail.com" }
return (
<section className="home">
<div className="home-content text-white">
<header className="home-header">
<HeaderBox
type="greeting"
title="Welcome"
user={loggedIn?.firstName || 'Guest'}
subtext="Access and manage your accounts the you way."
/>
<TotalBalanceBox
accounts={[]}
totalBanks={1}
totalCurrentBalance={45.55}
/>
</header>
RECENT TRANSACTIONS
</div>
<RightSidebar
user={loggedIn}
transactions={[]}
banks = {[{ currentBalance: 123.50 },{ currentBalance: 55.40 }]}
/>
</section>
)
}
export default Home
this is a test for a school project so i just need to make sure it can deploy before i continue so not done
well I don't think it's the first page we get
what do you have inside (auth) directory?
okay then I think (sign-in)/page.tsx
sorry i was at school —
oh you are at school?
@James4u okay then I think (sign-in)/page.tsx
SomaliOP
nothing cause it’s just a template
@James4u oh you are at school?
SomaliOP
on the way home!
hmm it's not
I wish I could see the directory structure like in vscode
what was the sub folders of (root)?
SomaliOP
well honestly if it helps i got the app up and running on vercel so honestly i dont even care right now to get it fixed as long as its up and running
😀
but thank you so much for the help i did get somewhere at one point i just forgot what i did
@Somali your issue is probs cause you don't expose the host
Add this to your package.json
"start": "next start -H 0.0.0.0 -p 1234"
"start": "next start -H 0.0.0.0 -p 1234"
Keep the -H as it is, update the port -p to the port coolify has opened for you, so if port 56 is opened... You would do -p 56
That's what I do when I'm running it in a docker container
@Arinji Add this to your package.json
"start": "next start -H 0.0.0.0 -p 1234"
SomaliOP
oop ok ill see thx
SomaliOP
is this correct?
@Arinji
@James4u but how do you develop on mobile?
SomaliOP
oh i dont
i was just not on pc at the time lol
using github app to see and edit small things here and there
SomaliOP
what does this mean!
@Somali is this correct?
Looks correct, which port is open on coolify
@Arinji Looks correct, which port is open on coolify
SomaliOP
i put 3000
i got it up and running before and then i just did an update and it broke again