Dokploy / examples

Examples to deploy on Dokploy
11 stars 20 forks source link

Docs: nuxt examples & Vuejs fix #6

Open StefanVDWeide opened 5 days ago

StefanVDWeide commented 5 days ago

I've added examples for deploy a Nuxt site both with server side rendering and as a static stite. Also, solved an issue with the VueJS docs where the wrong start command was written down.

mezotv commented 4 days ago

I dont think setting the port to 80 is required for this. Any port should work since it runs in a container anyways.

StefanVDWeide commented 3 days ago

I dont think setting the port to 80 is required for this. Any port should work since it runs in a container anyways.

80 is the default port for NGINX which serves the files in this case. Setting it to anything else will result in a bad gateway error. I've tested 3000 and 81 just in case.

mezotv commented 3 days ago

I dont think setting the port to 80 is required for this. Any port should work since it runs in a container anyways.

80 is the default port for NGINX which serves the files in this case. Setting it to anything else will result in a bad gateway error. I've tested 3000 and 81 just in case.

Oh so thats only an internal port then?

StefanVDWeide commented 3 days ago

I dont think setting the port to 80 is required for this. Any port should work since it runs in a container anyways.

80 is the default port for NGINX which serves the files in this case. Setting it to anything else will result in a bad gateway error. I've tested 3000 and 81 just in case.

Oh so thats only an internal port then?

Yeah exactly, since the container exposes port 80 the domain needs to be configured to point there

Siumauricio commented 3 days ago

I tested and both works, awesome

Can you change npm to pnpm? is more fast than npm

StefanVDWeide commented 2 days ago

I tested and both works, awesome

Can you change npm to pnpm? is more fast than npm

Great! Changed the example to pnpm

mezotv commented 2 days ago

Great! Changed the example to pnpm

With pnpm you can drop the run so its just pnpm generate

Siumauricio commented 49 minutes ago

@StefanVDWeide I still see the package lock file, can you please run pnpm install to generate the pnpm lock file and delete the package.lock.json?