RUVIDEO
Поделитесь видео 🙏

Deploy app to heroku | Node

📁 Обучение 👁️ 16 📅 03.12.2023

Deployment of Node.js app on heroku


In this lecture I will show you how to deploy your node app on heroku with your mongo database.

In order to deploy your node app on heroku you need to follow these steps.

Steps :

1. Go to https://www.heroku.com and https://mlab.com/ create account and logged in.
2. Click on node.js get started in heroku and than it will open new tab with documentation where you've to click on a button I'm ready to start and than download the CLI(Command Line Interface) for your OS from dropdown list and than install it.
3. After the installation of CLI open command prompt type heroku and than it will ask for your heroku credentials to provide access of heroku to your command line.
4. Open your project directory in text editor.
5. Create new file i.e. Procfile without any extension and type
web: node app.js(application file name).
6.Access your project directory with command line and type heroku create yourappname and hit enter.It will create app on heroku.
7.After creating an app type git init to initialzing git file.
8.After initializing git type command git add . to add all files and than git commit -m "Done" to commit your changes.
9. Now open mlab and click on create new and than click on single node and select sandbox (provide 500mb free storage) and enter database name and click on create button.
10. Now click on db name you created and than go to users tab and add users and fill the username and password and create user.
11. Than copy the address of mongo db from above and paste it into your app.js inside of mongoose.connection.
12. Again step 8
13. Now to push all the file to server we need to setup remote repository for that you have to type heroku git:remote -a app name
14. Finally we have to push files to server for that type git push heroku master.
15. Now when build succeeded type heroku open to open app.




If you face any issue in deployment of your node app, let me know through comments.

Do subscribe,

Thank you !

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Deploy app to heroku | Node», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.