-
-
Notifications
You must be signed in to change notification settings - Fork 193
Deploying RedBot
All sender/receiver nodes have a double bot configuration for development and production. By default is used the development configuration. To use production configuration, edit Node-RED settings file (settings.js) and set the environment global variable to "production".
{
// ...
functionGlobalContext: {
environment: 'development',
// ...
}
}
In this way the same Node-RED project (the same git repository) will work in two different environments without changes. Deploying the chatbot to production will require just a couple of clicks:
-
After all changes to the local chatbot are complete, go to the History > Local Changes panel of Node-RED and the commit all changes
-
Switch to Commit History and push the changes to the remote GIT repository (see GIT documentation for help on adding a remote repository to a local repository)
-
Open Node-RED on the production environment, go to History > Commit History and then pull from remote repository