• 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

Setting up NodeBB on cloud 9

Scheduled Pinned Locked Moved Tutorials
15 Posts 12 Posters 12.3k 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.
  • pichaliteP Offline
    pichaliteP Offline
    pichalite Plugin & Theme Dev
    wrote on last edited by pichalite
    #1

    On the dashboard click on "Create a new workspace"

    0_1456337717514_upload-2d686fc3-794d-4096-bdbc-379c1cf37de6

    On the Create a new workspace page, enter a name for the workspace. Enter https://github.com/NodeBB/NodeBB.git for "Clone from Git or Mercurial URL".

    Pick "Node.js" option from the "Choose a template section" and click "Create workspace"

    0_1456338066715_upload-036df0c3-c9d5-465b-a404-8bef458e7cc3

    The workspace will be created and you will be redirected to the IDE.

    If you want to use the master branch (development branch) of NodeBB then skip the next step.

    Type git checkout v1.x.x in the terminal to switch to the stable version of NodeBB (use the branch for the latest stable release)

    0_1456338384397_upload-b1e967dd-b2bc-470b-a407-926020c7420b

    Cloud 9 workspaces have MongoDB preinstalled. You need to start it. Follow these instructions to start MongoDB

    $ mkdir data
    $ echo 'mongod --bind_ip=$IP --dbpath=data --nojournal --rest "$@"' > mongod
    $ chmod a+x mongod
    $ ./mongod &
    

    The & in the last command lets you exit the MongoDB shell by using ctrl + c without shutting down the db

    Moving on to NodeBB installation and setup...

    Run npm install --production to install all NodeBB dependencies

    NodeBB setup will install the MongoDB dependencies when we pick mongo as the database and it requires a system module to be installed. Run this to install the module

    sudo apt-get update
    sudo apt-get install libkrb5-dev
    

    Run ./nodebb setup to start the NodeBB setup

    The easiest way to get the URL is to use the "Preview -> Preview running application" in the IDE menu.

    0_1456339371252_upload-f433e9bb-e84b-4053-8dae-b423e808983d

    This will open a browser window right next to the terminal. Copy the url from that window but do not include the / at the end. So in my case the URL is https://nodebb-pichalite1.c9users.io

    0_1456339435573_upload-fda01a1c-bcb8-495c-a73b-b79915fd6423

    • Use that as the URL and press enter

    • press enter to accept the default secret

    • type mongo and press enter for which database to use (if you are using v0.9.x branch, the default will show up as redis and for master the default is mongo)

    • you can press enter for the rest of the DB related questions or enter the details if you have a db and user setup in mongodb

    • the setup will ask you for admin username, email and password... enter them

    You will see this message if everything goes well...

    0_1456340143511_upload-20d96e4d-7b55-46b3-b645-63d1f4eab36b

    Run ./nodebb start to start NodeBB

    Use the URL entered before or click on "Preview -> Preview running application" from the menu to open NodeBB.

    0_1456340734750_upload-bf26fa85-11e7-4e20-9dc8-83f11e019138
    Login with the admin username/password you entered during the setup.

    Cloud 9 freezes the workspaces frequently when you are not using them. Once you go to the IDE for your workspace, run ./mongod & to startup MongoDB and then run ./nodebb start to start NodeBB

    EDIT: Looks like cloud 9 is not shutting down mongodb cleanly before going to hibernate.
    If you get a exception in initAndListen: 12596 old lock file, terminating error... try this...

    $ rm data/mongod.lock
    $ ./mongod &
    
    1 Reply Last reply
    10
  • Jared14406J Offline
    Jared14406J Offline
    Jared14406 Translator
    wrote on last edited by
    #2

    Nice tutorial! 🙂

    1 Reply Last reply
    0
  • psychobunnyP Offline
    psychobunnyP Offline
    psychobunny
    wrote on last edited by
    #3

    I actually used this tutorial a few days ago, and it worked perfectly. (although after all that I really can't give up sublime as my preferred editor, also my computer is a just a touch too slow for a web-based IDE)

    That said, awesome tutorial and thanks for contributing 🙂

    1 Reply Last reply
    1
  • F Offline
    F Offline
    Friendship Gamers
    wrote on last edited by
    #4

    OMG thank you! Gonna use this to make a forum for my class 🙂

    1 Reply Last reply
    3
  • F Offline
    F Offline
    Friendship Gamers
    wrote on last edited by
    #5

    any staff online? I need help 😞

    1 Reply Last reply
    1
  • SenseiS Offline
    SenseiS Offline
    Sensei Gamers
    wrote on last edited by
    #6

    Thanks 😄
    This is helpful 😉

    1 Reply Last reply
    1
  • SenseiS Offline
    SenseiS Offline
    Sensei Gamers
    wrote on last edited by
    #7

    Need halp to XD

    1 Reply Last reply
    1
  • TeboT Offline
    TeboT Offline
    Tebo
    wrote on last edited by
    #8

    I just hacked my way through a very ugly series of install attempts before finally getting it "working". I wish i'd seen this topic sooner. 😑

    1 Reply Last reply
    0
  • A Offline
    A Offline
    Apple Pro Gamers
    wrote on last edited by
    #9

    Just to add on to this tutorial, you now need to install mongodb manually....just run sudo apt-get -y mongodb-org before running ./mongod &

    TeboT R 2 Replies Last reply
    5
  • TeboT Offline
    TeboT Offline
    Tebo
    replied to Apple Pro on last edited by
    #10

    @Apple-Pro Found that out the hard way this afternoon when I reinstalled using this guide, but I wasn't sure if it was Cloud9 or I'd just done something wrong. Good to know I didn't Break All the Things.

    1 Reply Last reply
    0
  • ServerFailureS Offline
    ServerFailureS Offline
    ServerFailure
    wrote on last edited by ServerFailure
    #11

    So I'm attempting to use this walkthrough to setup a gaming forum. I'm having issues with the install.

    I have very limited experience, anyone with more knowledge able to do a review of this walk through and fix any issues? It would be greatly appreciated. Thanks.

    1 Reply Last reply
    0
  • R Offline
    R Offline
    Rob Fraktar
    replied to Apple Pro on last edited by Rob Fraktar
    #12

    @apple-pro said in Setting up NodeBB on cloud 9:

    sudo apt-get -y mongodb-org

    It's actually:

    sudo apt-get install -y mongodb-org

    Also, thanks for the guide. This should replace: https://docs.nodebb.org/installing/cloud/cloud9/ (didn't work for me).

    1 Reply Last reply
    0
  • A Offline
    A Offline
    abhinov singh
    wrote on last edited by
    #13

    [2670] - error: NodeBB could not connect to your Mongo database. Mongo returned the following error: failed to connect to server [127.0.0.1:27017] on first connect [MongoError: connect ECONNREFUSED 127.0.0.1:27017]

    Urgent help required

    1 Reply Last reply
    0
  • T Offline
    T Offline
    tanik
    wrote on last edited by
    #14

    After I hit typed mongo and hit enter, I got

    Format: mongodb://[username:password@]host1[:port1][,host2[:port2],...[,hostN[:portN]]][/[database][?options]]

    I'm not sure what should I do or type here. Please help. Thank you so much.

    1 Reply Last reply
    0
  • olivedevO Offline
    olivedevO Offline
    olivedev
    wrote on last edited by
    #15

    It would be great if you can also provide a tutorial on setting up Nodebb on Heroku.

    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