Next.js Discord

Discord Forum

Coolify Deployment Issues

Unanswered
Somali posted this in #help-forum
Open in Discord
Avatar
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

> 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
Image

60 Replies

Avatar
@James4u and does this work well in your local?
Avatar
SomaliOP
yes
on my domain
i have plenty of other projects on there
my website is on there
Avatar
@Somali yes
Avatar
do you mind sharing your home page codebase?
Avatar
SomaliOP
the next js project?
Avatar
yeah
Avatar
@Somali coolify
Avatar
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
Avatar
@Somali i showed logs
Avatar
??? it's your local terminal I guess
Avatar
SomaliOP
it’s not
😭
that’s the thing
that’s from coolify
Image
Avatar
@James4u ??? it's your local terminal I guess
Avatar
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
Avatar
/src/page.tsx
Avatar
@James4u `/src/page.tsx`
Avatar
SomaliOP
i don’t have a src folder
Image
Avatar
okay then I think it can be (root)/page.tsx
@Somali
Avatar
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
Avatar
well I don't think it's the first page we get
what do you have inside (auth) directory?
Avatar
okay then I think (sign-in)/page.tsx
Avatar
@Somali Click to see attachment
Avatar
??
Avatar
@James4u okay then I think (sign-in)/page.tsx
Avatar
SomaliOP
ok
sorry i was at school —
Avatar
oh you are at school?
Avatar
@James4u okay then I think (sign-in)/page.tsx
Avatar
SomaliOP
nothing cause it’s just a template
Image
Avatar
@James4u oh you are at school?
Avatar
SomaliOP
on the way home!
Avatar
hmm it's not
I wish I could see the directory structure like in vscode
what was the sub folders of (root)?
Avatar
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
Avatar
lol
anyway good to hear
but how do you develop on mobile?
Avatar
@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"
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
Avatar
SomaliOP
is this correct?
Image
@Arinji
Avatar
@James4u but how do you develop on mobile?
Avatar
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
Avatar
SomaliOP
what does this mean!
Image
Avatar
@Somali is this correct?
Avatar
Looks correct, which port is open on coolify
Avatar
@Arinji Looks correct, which port is open on coolify
Avatar
SomaliOP
i put 3000
i got it up and running before and then i just did an update and it broke again