• Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
v3.5.2 Latest
Buy Hosting

How you running NodeBB ?

Scheduled Pinned Locked Moved Solved General Discussion
ruunning nodebbinstall nodebb
32 Posts 20 Posters 15.0k Views
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    epety
    wrote on last edited by
    #1

    Which is your choose ?

    • Forever Daemon
    • Supervisor Process
    • Upstart
    • ./nodebb start
      or Docker
    1 Reply Last reply
    0
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #2

    Supervisor

    1 Reply Last reply
    1
  • agusputraA Offline
    agusputraA Offline
    agusputra GNU/Linux
    wrote on last edited by
    #3

    I'm using pm2

    SuperMikeS 1 Reply Last reply
    2
  • A Offline
    A Offline
    a_5mith
    wrote on last edited by
    #4

    ./nodebb start then updown.io looking for loader.js every 30 seconds to monitor uptime and alert me when its down. Could probably hook that into an IFTTT script that starts nodebb again. But, for now my site goes down when I shut it down. So not very necessary.

    1 Reply Last reply
    0
  • W Offline
    W Offline
    wellenreiter
    wrote on last edited by
    #5

    ./nodebb start only. It's pretty stable

    1 Reply Last reply
    7
  • S Offline
    S Offline
    Scuzz
    wrote on last edited by
    #6

    I've used ./nodebb start ever since it was introduced. We have no issues with it.

    1 Reply Last reply
    3
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #7

    Glad to hear ./nodebb start is working well 😄

    1 Reply Last reply
    1
  • JaredBuschJ Offline
    JaredBuschJ Offline
    JaredBusch GNU/Linux
    wrote on last edited by
    #8

    I just use ./nodebb start also. Never had a need to touch it otherwise.

    1 Reply Last reply
    0
  • ApxukocA Offline
    ApxukocA Offline
    Apxukoc
    wrote on last edited by Apxukoc
    #9

    [root@admin ~]# cat /etc/systemd/system/nodebb.service
    [Unit]
    Description=NodeBB Forum platform
    After=system.slice multi-user.target

    [Service]
    Type=simple
    User=node

    StandardOutput=syslog
    StandardError=syslog
    SyslogIdentifier=node
    SyslogFacility=local0

    WorkingDirectory=/home/node/forum/
    ExecStart=/bin/node app.js
    Restart=always

    [Install]
    WantedBy=multi-user.target
    [root@admin ~]#

    [root@admin ~]# uname -a
    Linux localdomain 3.10.0-042stab112.15 #1 SMP Tue Oct 20 17:22:56 2015 x86_64 x86_64 x86_64 GNU/Linux
    [root@admin ~]#
    service nodebb start
    service nodebb restart
    systemctl enable nodebb.service
    😉

    1 Reply Last reply
    2
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    wrote on last edited by
    #10

    @Apxukoc Ah, but then you can't use the reload/restart buttons in the ACP 😉

    Have you tried changing the executable to run node loader.js --no-daemon --no-silent? 😄

    ApxukocA 1 Reply Last reply
    2
  • ApxukocA Offline
    ApxukocA Offline
    Apxukoc
    replied to julian on last edited by
    #11

    @julian
    I write through Google Translate, sorry.
    I needed a script run at boot time, I got it 🙂
    The only thing you surely noticed that there will be no check to verify the process. But such monitoring I solved by Zabbix 🙂

    julianJ 1 Reply Last reply
    0
  • SuperMikeS Offline
    SuperMikeS Offline
    SuperMike
    replied to agusputra on last edited by
    #12

    @agusputra I am trying to use pm2 as well.

    But when I tried start nodebb in pm2

    pm2 start loader.js --name nodebb
    

    error will be in pm2 console

    PM2: 2015-12-15 14:26:54: Starting execution sequence in -fork mode- for app name:nodebb id:2
    PM2: 2015-12-15 14:26:54: App name:nodebb id:2 online
    PM2: 2015-12-15 14:26:55: App name:nodebb id:2 exited with code 0
    

    Could you please tell me how to start nodebb in pm2?

    agusputraA 1 Reply Last reply
    0
  • agusputraA Offline
    agusputraA Offline
    agusputra GNU/Linux
    replied to SuperMike on last edited by
    #13

    @SuperMike I'm just using pm2 to start nodebb shell script.

    1. Create pm2.json5

    {
      apps : [
        {
          name: "MyForumApp",
          script: "nodebb",
          args: "start"
        }
      ]
    }
    

    2. Then pm2 start pm2.json5

    G 1 Reply Last reply
    0
  • julianJ Offline
    julianJ Offline
    julian GNU/Linux
    replied to Apxukoc on last edited by julian
    #14

    @Apxukoc I am using Ubuntu 15.10 now on my laptop, so I'll need to figure out a systemd script too 😄

    Might just use yours..

    1 Reply Last reply
    0
  • G Offline
    G Offline
    giantkingsquid
    replied to agusputra on last edited by giantkingsquid
    #15

    @agusputra How do you stop NodeBB using your method?

    If i do pm2 stop MyForumApp the pm2 list has a big red Stopped on it but I can still access the forum. If I then do ./nodebb stop it actually stops it.

    agusputraA 1 Reply Last reply
    0
  • agusputraA Offline
    agusputraA Offline
    agusputra GNU/Linux
    replied to giantkingsquid on last edited by
    #16

    @giantkingsquid Yes, I do ./nodebb stop

    1 Reply Last reply
    0
  • KalbaskinK Offline
    KalbaskinK Offline
    Kalbaskin GNU/Linux
    wrote on last edited by
    #17

    I use: ./nodebb start
    🙂

    1 Reply Last reply
    0
  • Jared14406J Offline
    Jared14406J Offline
    Jared14406 Translator
    wrote on last edited by
    #18

    Hmm intresting

    1 Reply Last reply
    0
  • zerefelZ Offline
    zerefelZ Offline
    zerefel
    wrote on last edited by
    #19

    ./nodebb start works like a charm and I've never had a problem with it.

    1 Reply Last reply
    0
  • Jared14406J Offline
    Jared14406J Offline
    Jared14406 Translator
    wrote on last edited by
    #20

    Well it's /nodebb start or /nodebb stop to stop it 😉

    1 Reply Last reply
    0

Copyright © 2023 NodeBB | Contributors
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Home
  • Categories
  • Recent
  • Popular
  • Top
  • Tags
  • Users
  • Groups
  • Documentation
    • Home
    • Read API
    • Write API
    • Plugin Development