ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    CloudatCost Project: Node Application Server

    IT Discussion
    node.js nodebb ubuntu ubuntu 14.10 linux cloudatcost mongodb
    2
    4
    2.2k
    Loading More Posts
    • 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.
    • scottalanmillerS
      scottalanmiller
      last edited by scottalanmiller

      CloudatCost has been awesome and has provided Grove Social / MangoLassi with a staging instance to use for testing MangoLassi updates and changes. This will be very important to the community going forward as it should allow us far better reliability and allows us to work on features that we previously had to avoid due to disruption.

      So we are attempting to manually replicate the deployment environment on a Dev3 instance. Our starting point is Ubuntu 14.04.2 LTS but we need to get it updated to the latest. We run on Ubuntu 14.10 to get the latest performance into the community.

      We start with system updates...

      apt-get update && apt-get upgrade
      

      My default, CloudatCost sets up Ubuntu to be LTS (Long Term Support) release only. We need to change that so that it switches to rolling updates, aka "normal" configuration. We can do this with a single command...

      sed -i s/Prompt=lts/Prompt=normal/ /etc/update-manager/release-upgrades
      

      Now we can update the system....

      do-release-upgrade
      

      And we can just follow the on-screen prompts. Because console access is available, and because this is a fresh system being updated that can simply be re-imaged, there is no reason to worry about the recommended secondary SSH daemon or the firewall change. This update will run for a very long time. Do not be surprised.

      You will need to reboot. And then I install my standard packages.

      apt-get install sysstat htop fail2ban
      

      Now we need our application and database platforms.

      apt-get install mongodb-server nodejs nginx
      

      And there we go. A fully functional Ubuntu 14.10 Node / MongoDB platform. Plus Nginx which is not strictly needed but would be expected as a proxy in most cases. For most people, MongoDB would not be used. This is only for extremely large scale systems. Typically you would use Redis, that is the default.

      Now we just need some application dependencies...

      apt-get install git nodejs-legacy npm redis-server imagemagick build-essential
      

      We could skip Redis here if we were just running on MongoDB but we are looking to move to both for scaling purposes.

      Now we can install NodeBB.

      cd /opt
      git clone -b v0.6.x https://github.com/NodeBB/NodeBB.git mangolassi
      cd mangolassi
      npm install
      
      1 Reply Last reply Reply Quote 1
      • DashrenderD
        Dashrender
        last edited by

        Sounds like ML has found a great Business Partner!

        Awesome job whomever found them!

        scottalanmillerS 1 Reply Last reply Reply Quote 0
        • scottalanmillerS
          scottalanmiller @Dashrender
          last edited by

          @Dashrender said:

          Sounds like ML has found a great Business Partner!

          Awesome job whomever found them!

          They found us because there was a thread talking about them. I think it was @coliver who was asking about them.

          1 Reply Last reply Reply Quote 0
          • DashrenderD
            Dashrender
            last edited by

            Aww.. I thought someone reached out to them and said "hey we are talking about you over at ML, why not stick your head in?"

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post