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

    Installing Rocket.Chat on CentOS 7

    Scheduled Pinned Locked Moved IT Discussion
    rocketchatinstant messagingcentos 7centosrhel 7linuxlinux serverntg labscalescale hc3
    30 Posts 11 Posters 13.6k Views
    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

      If you want to use an external MongoDB instance, which would not be very common, you can use my MongoDB installer guide from earlier today. That will get you enough to get started. Then just modify these lines as needed:

      echo "export ROOT_URL=http://rocket.lab.ntg.co/" >> ~/.bashrc
      echo "export MONGO_URL=mongodb://localhost:27017/rocketchat" >> ~/.bashrc
      echo "export PORT=80" >> ~/.bashrc
      

      The top line, obviously, is the URL of your install. Make that whatever you are going to use.

      The second line is the database connection information. If using an external MongoDB instance, replace localhost with the hostname or IP address of your database server. /rocketchat is the name of the database instance, no need to create this manually.

      The last line is the port that the web server is on. By default Rocket.Chat is on 3000 and does not need to be run as root, but that assumes that you will be putting a proxy in front of it right away. You can do that just as easily with port 80. We did this to get a working instance up in a single shot. Changing to non-root use is simple enough.

      1 Reply Last reply Reply Quote 1
      • A
        Alex Sage
        last edited by Alex Sage

        GitHub Script Link?

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

          @anonymous said:

          GitHub Script Link?

          https://github.com/scottalanmiller/rocketchatbuilder/blob/master/install_rocketchat

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

            Should be able to curl that directly into BASH as root and automagically you have a one line installer 🙂

            1 Reply Last reply Reply Quote 0
            • A
              Alex Sage
              last edited by Alex Sage

              Is there anyway to make the URL more conformed?

              For example: https://github.com/scottalanmiller/rocketchat

              I would like a easy to remember URL

              So https://github.com/scottalanmiller/<appname>

              I know nothing about GitHub, so maybe it is not possible.

              1 Reply Last reply Reply Quote 0
              • A
                Alex Sage
                last edited by

                Or maybe you create one "master" script that lets us select a app to install 🙂

                scottalanmillerS 1 Reply Last reply Reply Quote 1
                • scottalanmillerS
                  scottalanmiller @Alex Sage
                  last edited by

                  @anonymous said:

                  Or maybe you create one "master" script that lets us select a app to install 🙂

                  LOL, actually that would not be all that hard. Then just that one script would need to detect your OS (CentOS, Ubuntu, etc.) and then pull the right script to install from that. That would actually work.

                  A 1 Reply Last reply Reply Quote 0
                  • A
                    Alex Sage @scottalanmiller
                    last edited by Alex Sage

                    @scottalanmiller One script to rule them all! evil laugh

                    1 Reply Last reply Reply Quote 1
                    • Reid CooperR
                      Reid Cooper
                      last edited by

                      One script to BIND them.

                      bbigfordB 1 Reply Last reply Reply Quote 2
                      • A
                        Alex Sage
                        last edited by

                        @scottalanmiller Why not add one question at the very beginning, and ask for the URL? That's the only input needed.

                        1 Reply Last reply Reply Quote 0
                        • IRJI
                          IRJ
                          last edited by

                          woohoo

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

                            @IRJ said:

                            woohoo

                            Yeah, this was a nice victory.

                            1 Reply Last reply Reply Quote 0
                            • bbigfordB
                              bbigford @Reid Cooper
                              last edited by

                              @Reid-Cooper said:

                              One script to BIND them.

                              I see what you did there. It's very clever.

                              1 Reply Last reply Reply Quote 0
                              • gabriel.engelG
                                gabriel.engel
                                last edited by

                                This is awesome! You'd you like to collaborate with our documentations effort? 🙂

                                scottalanmillerS 1 Reply Last reply Reply Quote 2
                                • scottalanmillerS
                                  scottalanmiller @gabriel.engel
                                  last edited by

                                  @gabriel.engel said:

                                  This is awesome! You'd you like to collaborate with our documentations effort? 🙂

                                  You bet, glad to help. Let me know what is needed.

                                  1 Reply Last reply Reply Quote 1
                                  • JoyJ
                                    Joy
                                    last edited by

                                    I tried to installed Rocket.Chat few days ago. Gotta check it today

                                    1 Reply Last reply Reply Quote 0
                                    • JoyJ
                                      Joy
                                      last edited by

                                      @scottalanmiller i got this error :

                                      npm install inherits
                                      npm WARN package.json [email protected] No description
                                      npm WARN package.json [email protected] No repository field.
                                      npm WARN package.json [email protected] No README data
                                      [email protected] node_modules/inherits

                                      npm install
                                      npm WARN package.json [email protected] No description
                                      npm WARN package.json [email protected] No repository field.
                                      npm WARN package.json [email protected] No README data

                                      npm install forevernpm WARN optional dep failed, continuing [email protected]
                                      [email protected] node_modules/forever

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

                                        At what stage did you get that error, on running which command?

                                        JoyJ 1 Reply Last reply Reply Quote 0
                                        • JoyJ
                                          Joy @scottalanmiller
                                          last edited by

                                          @scottalanmiller said:

                                          At what stage did you get that error, on running which command?

                                          npm install inherits

                                          npm install

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

                                            Double check what folder you are running that from.

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