#How to deploy the nest.js project without docker!
62 messages · Page 1 of 1 (latest)
Where do you want to deply?
oh, I tried to deploy on back4app
My docker file setting is
.git
.gitignore
.env
README.md
Dockerfile
node_modules/
.github
.vscode
npm-debug.log
npm-debug.log.*
but i got:
the project is going well. But in trying deploy, there is issue because of the docker issue
Okay, never looked at back4app before, and their docs aren't great
ohh!
I assume you're doing someting like b4a deploy to deploy the application to their cloud?
right!
That's an SSH issue with not having a trusted key on b4a when trying to git clone from the git repo
but, I again tried, then pushed
😉
I am following this guide
Learn how to efficiently deploy your Nest.js application to a Back4app container and how to reduce deployment times using multi-stage builds.
Looks like with b4a deploy it expects some sort of cloud functions approach and a main.js in the root of the project]
I would expect their tutorial to walk you throiugh evertything
If not, I would try contacting their support. I can talk through the broad steps of deploying with and without docker, but each platform obviously will vary'
this!
Thank you!
Looks like docker isn't running. Did the docker daemon ever get started?
But you got the error locally, right?
sure
because of that, I think the docker is not running now!
there is no docker icon
Oh boy, WSL. I have 0 experience with that
yes!🫣
I just said I have no experience with WSL.
ASo do you expect me to know what to do?
okay, will try again for fixing the WSL
in my side
anyway, it is my default setting
so, where is the platform whic is available for hosting the nest.js project without docker?
My OS seems like don't like the docker . lol
Seems like you're on Windows under WSL. Do you use Docker desktop? If so, you need to start it before using the docker CLI command. This is a fairly common error.
Also you'll probably need to update to WSL2 before continuing
Thank you for your reply
how can I fix this issue?
Make sure you're on WSL2 first. Microsoft has a great guide on it (basically you'll just need to download and run a binary). Should be easy to google
Have you tried rebooting your PC?
sure
I would probably try to reinstall docker desktop the (fully uninstall, then install). I remember having to do that when I messed up my install.
Also it might be better to install just the docker engine, Docker Desktop is mainly for Windows and Mac and doesn't play really well with Linux (WSL). Also it has a somewhat questionable pricing (it is not free)