D
Dokploy•6mo ago
Alex100dre

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 :
Caused by:
No such file or directory (os error 2)
Error response from daemon: No such container: demo-vue-d96d47-Q-LMCvi5x-
Error :x:
Error response from daemon: No such container: demo-vue-d96d47-Q-LMCvi5x-
Caused by:
No such file or directory (os error 2)
Error response from daemon: No such container: demo-vue-d96d47-Q-LMCvi5x-
Error :x:
Error response from daemon: No such container: demo-vue-d96d47-Q-LMCvi5x-
So I tried to change the build path to / and it looks like it worked but I get a warning :
#15 DONE 4.5s

1 warning found (use docker --debug to expand):
 - UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)
=== Successfully Built! ===

Run:
docker run -it demo-vue-d96d47
Docker Deployed: :white_check_mark:
#15 DONE 4.5s

1 warning found (use docker --debug to expand):
 - UndefinedVar: Usage of undefined variable '$NIXPACKS_PATH' (line 18)
=== Successfully Built! ===

Run:
docker run -it demo-vue-d96d47
Docker Deployed: :white_check_mark:
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 preview
GitHub
examples/vuejs at main · Dokploy/examples
Examples to deploy on Dokploy. Contribute to Dokploy/examples development by creating an account on GitHub.
27 Replies
Siumauricio
Siumauricio•6mo ago
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
Alex100dre
Alex100dreOP•6mo ago
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
No description
Siumauricio
Siumauricio•6mo ago
Let me try You are right did you added the enviroment variable? this env NIXPACKS_START_CMD="pnpm run preview"
Siumauricio
Siumauricio•6mo ago
No description
Siumauricio
Siumauricio•6mo ago
No description
Siumauricio
Siumauricio•6mo ago
No description
Alex100dre
Alex100dreOP•6mo ago
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 :
Alex100dre
Alex100dreOP•6mo ago
Btw, i'm not using the example vue repo. I'm pulling a blank vue js repo I just initialized
Siumauricio
Siumauricio•6mo ago
ok everything looks nice now can you show the logs? and also share how did you craete a domain
Alex100dre
Alex100dreOP•6mo ago
No description
Siumauricio
Siumauricio•6mo ago
looks nice, share the logs of the application
Alex100dre
Alex100dreOP•6mo ago
with /vuejs path
Siumauricio
Siumauricio•6mo ago
no, i mean the running logs that's the building logs yeah just remove the /vuejs path please
Siumauricio
Siumauricio•6mo ago
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.
Alex100dre
Alex100dreOP•6mo ago
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.
Alex100dre
Alex100dreOP•6mo ago
I'm redeploying with / path and I'll send you the logs after that
Siumauricio
Siumauricio•6mo ago
ok let me try also
Alex100dre
Alex100dreOP•6mo ago
Ok in logs I have /bin/bash: line 1: pnpm: command not found so maybe I should try npm instead of pnpm ?
Siumauricio
Siumauricio•6mo ago
is correct do npm Yeah for me is working http://web-app-test-2h7kh3-a92ffa-5-161-87-31.traefik.me/
Siumauricio
Siumauricio•6mo ago
No description
Siumauricio
Siumauricio•6mo ago
No description
Siumauricio
Siumauricio•6mo ago
No description
Siumauricio
Siumauricio•6mo ago
No description
Siumauricio
Siumauricio•6mo ago
using your repo
Alex100dre
Alex100dreOP•6mo ago
Okay it works as well. Thanks a lot! should I close the post?
Siumauricio
Siumauricio•6mo ago
Yeah just change the title as [Resolved]

Did you find this page helpful?