Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 589 Bytes

File metadata and controls

28 lines (17 loc) · 589 Bytes

تطبيق nodemon autorestart بعد تعطل التطبيق

هذا المشروع هو إعادة تشغيل nodemon تلقائيًا في حالة حدوث عطل.

متطلبات

• Node.js

• Nodemon (قابل للتثبيت مع:

npm i -g nodemon

)

تعليمات الاستخدام:

قم بتحرير ملف config.json كما في المثال:

{
    "file":"/sdcard/bot/main.js",
    "pathToWatch":"/sdcard/bot"
}

انسخ ملفات start.js و config.json إلى مجلد مشروعك ولبدأ تشغيله ، استخدم:

node start.js