Skip to content

Deploying RedBot

Guidone edited this page Feb 6, 2018 · 2 revisions

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:

  1. After all changes to the local chatbot are complete, go to the History > Local Changes panel of Node-RED and the commit all changes

  2. 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)

  3. Open Node-RED on the production environment, go to History > Commit History and then pull from remote repository

Clone this wiki locally