#How to deploy the nest.js project without docker!

62 messages · Page 1 of 1 (latest)

fervent herald
#

what is the way to deploy the nest.js project as only backend without helping of the docker?

uneven river
#

Where do you want to deply?

fervent herald
#

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

uneven river
#

Okay, never looked at back4app before, and their docs aren't great

fervent herald
#

ohh!

uneven river
#

I assume you're doing someting like b4a deploy to deploy the application to their cloud?

fervent herald
#

after install the docker, i got this error when I push the code to the github

uneven river
# fervent herald

That's an SSH issue with not having a trusted key on b4a when trying to git clone from the git repo

fervent herald
#

but, I again tried, then pushed

#

😉

#

I am following this guide

uneven river
#

Looks like with b4a deploy it expects some sort of cloud functions approach and a main.js in the root of the project]

fervent herald
#

sure

#

now, am trying again!

uneven river
fervent herald
#

but, I got in this stage

uneven river
#

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'

fervent herald
uneven river
fervent herald
uneven river
#

But you got the error locally, right?

fervent herald
#

sure

#

because of that, I think the docker is not running now!

#

there is no docker icon

uneven river
#

Oh boy, WSL. I have 0 experience with that

fervent herald
fervent herald
fervent herald
#

?

uneven river
#

I just said I have no experience with WSL.

fervent herald
#

usre

#

oh!

uneven river
#

ASo do you expect me to know what to do?

fervent herald
#

okay, will try again for fixing the WSL

#

in my side

#

anyway, it is my default setting

fervent herald
#

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

uneven river
#

EC2, GCP, DigitalOcean, render, fly.io, there's options out there

pure wharf
#

Also you'll probably need to update to WSL2 before continuing

fervent herald
pure wharf
fervent herald
#

I am not on WSL2

#

how to download and run a binary

#

😟

pure wharf
#

Have you tried rebooting your PC?

fervent herald
#

sure

pure wharf
#

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)

fervent herald
#

oh! so you mean, i have to retry remove and install?

#

lol