D
Dokploy•7mo ago
Hussein

How to deploy my nextjs app

Im pretty new to the server/cloud world. So im still trying to figure it out. I have paid for a sub on dokploy and i have a server. How would i deploy my nextjs app. How do i create a container for my logs and do my settings look correct.
No description
35 Replies
Hussein
HusseinOP•7mo ago
How to do create a container
Catur
Catur•7mo ago
Do you have a Dockerfile for your project repository? If you have a Dockerfile in your project repository, you can select the Dockerfile option, then specify the location of your Dockerfile file, then save and deploy, application containers are automatically created and run.
No description
Hussein
HusseinOP•7mo ago
Hello Do not have a dockerfile pretty sure
Hussein
HusseinOP•7mo ago
No description
Hussein
HusseinOP•7mo ago
Hussein
HusseinOP•7mo ago
I don't get why is not finding my compontents?
Siumauricio
Siumauricio•7mo ago
Hey! Is not necessary to write your own dockerfile you can use nixpacks for example to build & run the application automatically probably typescript resolution, can you try to build the nextjs application in your machine and see if you still have errors?
Hussein
HusseinOP•7mo ago
Hello I use it on my localhost just fine and I don't use typescript It works fine on my localhost so I don't really understand the errors
Siumauricio
Siumauricio•7mo ago
Can you share the package json you have!
Hussein
HusseinOP•7mo ago
Yes of course give me one moment
Hussein
HusseinOP•7mo ago
Pastebin
{ "name": "naturerank-insigts", "version": "0.1.0", "private": t...
Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.
Siumauricio
Siumauricio•7mo ago
Looks fine your repo is public?
Hussein
HusseinOP•7mo ago
Is not public But I can invite you
Siumauricio
Siumauricio•7mo ago
yeah if you can invite me would be awesome, this is my username: Siumauricio
Hussein
HusseinOP•7mo ago
added you
Siumauricio
Siumauricio•7mo ago
let me chck
Hussein
HusseinOP•7mo ago
Thank you so much
Siumauricio
Siumauricio•7mo ago
you are using aliases in a project that is fully javascript you also don't have a tsconfig
Hussein
HusseinOP•7mo ago
Yes i use javascript Is that bad`?
Siumauricio
Siumauricio•7mo ago
Yes because aliases is a thing for typescript proyects
Hussein
HusseinOP•7mo ago
I thought that was normal. Should I remove it
Siumauricio
Siumauricio•7mo ago
yes, but le me try on my machine first
Siumauricio
Siumauricio•7mo ago
I tried to build locally and it gave me this errors
Siumauricio
Siumauricio•7mo ago
are you sure you already tried to build locally the application in your machine?
Hussein
HusseinOP•7mo ago
I actually just tried to do npm run dev and did not actually build it 😅. I will try and fix it thank you so much
Siumauricio
Siumauricio•7mo ago
yeah you need to run the npm run build and then start the production build with npm run start but first make sure to solve all the errors that npm run build command give to you
Hussein
HusseinOP•7mo ago
Okay thank you so much
Hussein
HusseinOP•7mo ago
I made it work, but how would i make it secure. Cloudflare. I have a firewall on hetzner
No description
Hussein
HusseinOP•7mo ago
Any idea
Siumauricio
Siumauricio•7mo ago
you already have a domain?
Hussein
HusseinOP•7mo ago
Not yet. Is there any documation on how to add a domain?
Siumauricio
Siumauricio•7mo ago
Requirements
See a requirements for a domain for the Dokploy panel
Hussein
HusseinOP•7mo ago
Thank you so much
Hussein
HusseinOP•7mo ago
How would i connect to my terminal so i can see all the nextjs calls etc
No description
Siumauricio
Siumauricio•7mo ago
what do you mean by nextjs calls? you should see in the logs tab

Did you find this page helpful?