Restarting Node Applications


  • Admin

    A persistent pain point in NodeBB usage has always been installing plugins/themes. For example, the steps to install a plugin are as follows:

    1. npm install nodebb-plugin-myplugin
    2. Navigate to the "Plugins" page and activate it
    3. Restart NodeBB (plugin is not truly active otherwise)
    4. (Optional) If the plugin requires setup, navigate to its page in the control panel
    5. (Optional) Restart NodeBB again

    This is a definite step back from other (non-node based) platforms, where plugin installation is a two step process:

    1. Install plugin (e.g. unzip to plugin directory)
    2. Activate plugin

    Click here to see the full blog post



  • This is a very nice step indeed.



  • So will this restart the entire NodeBB server, dropping all websocket connections, or just restart the plugin?


  • Admin

    Running ./nodebb restart will stop and start the NodeBB, all web socket connections will experience a temporary disconnect, yes, but they will reconnect almost immediately. :)



  • nice article, useful stuff



  • @julian said in Restarting Node Applications:

    A persistent pain point in NodeBB usage has always been installing plugins/themes. For example, the steps to install a plugin are as follows:

    1. npm install nodebb-plugin-myplugin
    2. Navigate to the "Plugins" page and activate it
    3. Restart NodeBB (plugin is not truly active otherwise)
    4. (Optional) If the plugin requires setup, navigate to its page in the control panel
    5. (Optional) Restart NodeBB again

    This is a definite step back from other (non-node based) platforms, where plugin installation is a two step process:

    1. Install plugin (e.g. unzip to plugin directory)
    2. Activate plugin

    Click here to see the full blog post

    I don't know where the NodeBB directory is :(


  • Global Moderator

    @ChaosYamYT this is a really old Post. You'll want to just install plugins from the admin panel.


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.