Deploy Vue.js [Resolved]
Hello,
First, I want to thank you for this tool . I'm trying to deploy a vue.js app for a meetup demo but I'm facing an issue.
I followed the the readme of the vue.js example here : https://github.com/Dokploy/examples/tree/main/vuejs
But I'm getting this error :
So I tried to change the build path to / and it looks like it worked but I get a warning :
And the url give me a
Bad Gateway
error. The domain is set to the 3000
port like mentioned in the vite.config.ts
file for previewGitHub
examples/vuejs at main · Dokploy/examples
Examples to deploy on Dokploy. Contribute to Dokploy/examples development by creating an account on GitHub.
27 Replies
Hey, sure can you show how did you configure the source type ?
In general tab?
I think you didnt specify the build path 🤔
Which is /vuejs
When I fill
/vuejs
I get the first error. The only way for the build to succeed is to fill the path with the value /
but then I have Bad Gateway

Let me try
You are right
did you added the enviroment variable?
this env
NIXPACKS_START_CMD="pnpm run preview"



Of course, without that I would have another error telling me there is no start command.
Here are the logs of the deployment where you can see it's processing the preview command :
Btw, i'm not using the example vue repo. I'm pulling a blank vue js repo I just initialized
ok everything looks nice now
can you show the logs?
and also share how did you craete a domain

looks nice, share the logs of the application
with /vuejs path
no, i mean the running logs
that's the building logs
yeah just remove the /vuejs path please
and add this fields to vite.config.ts
https://github.com/Dokploy/examples/blob/main/vuejs/vite.config.ts#L15
and
https://github.com/Dokploy/examples/blob/main/vuejs/vite.config.ts#L19
GitHub
examples/vuejs/vite.config.ts at main · Dokploy/examples
Examples to deploy on Dokploy. Contribute to Dokploy/examples development by creating an account on GitHub.
Yes I already did the vite.config.ts
https://github.com/Alex100dre/vuejs2024/blob/main/vite.config.ts
GitHub
vuejs2024/vite.config.ts at main · Alex100dre/vuejs2024
Vue.js Paris dec 2024 demo. Contribute to Alex100dre/vuejs2024 development by creating an account on GitHub.
I'm redeploying with / path and I'll send you the logs after that
ok let me try also
Ok in logs I have /bin/bash: line 1: pnpm: command not found
so maybe I should try npm instead of pnpm ?
is correct
do npm
Yeah for me is working
http://web-app-test-2h7kh3-a92ffa-5-161-87-31.traefik.me/




using your repo
Okay it works as well. Thanks a lot!
should I close the post?
Yeah just change the title as [Resolved]