J
J
jedifa2021-07-28 23:43:17
Node.js
jedifa, 2021-07-28 23:43:17

How do I build nest js of the project?

I have a nest project, how can I make a build and put the finished build on GitHub? I tried to upload the dist folder to GitHub, but for some reason GitHub does not understand the language

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rag'n' Code Man, 2021-07-29
@jedifa

You don’t need to post anything on GitHub, or rather, you need to store the source codes there, so you kill two birds with one stone - Remote storage of your code with versions, and also ...
Heroku !
Convenient, free cloud service. Perfect for development.
Just attach your github repository to it and get automatic deployment with each push to origin/master , this is, by the way, the second hare.
Most importantly, do not forget to create Procfileand write the following line in the root of the application:
web: npm run start:prod
Or, if you like yarn:
web: yarn start:prod
Heroku automatically looks for build scripts in package.json and builds your application on its own, there is no need to bother.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question