Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

There is no main.js file in Rocket.chat root directory after complete installation. #1252

Open
tune6688 opened this issue Jul 22, 2022 · 0 comments

Comments

@tune6688
Copy link

Dear author:
This is wei, I am very interested in the rich text support function provided in your WideChat/Rocket.Chat. I have encountered a problem when downloading the source file through Github for installation. I hope you can give me some help, thank you very much!

The problem is:
There is no main.js file in Rocket.chat root directory after complete installation.

System info include:
Centos8
node v12.18.4
npm v6.14.6
WideChat v4.6.3

Install steps:
1.centos8 update
dnf update -y

2.install NodeJS
dnf install -y gcc-c++ make
curl -sL https://rpm.nodesource.com/setup_12.x | bash
dnf install -y nodejs

3.install GraphicsMagick
dnf install -y epel-release
dnf install -y GraphicsMagick
sudo npm install -g inherits n && sudo n 12.18.4

4.install MongoDB
sudo apt update
sudo apt install wget curl gnupg2 software-properties-common apt-transport-https ca-certificates lsb-release
curl -fsSL https://www.mongodb.org/static/pgp/server-5.0.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/mongodb.gpg
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt update
sudo apt install mongodb-org
sudo systemctl restart mongod
systemctl status mongod
sudo systemctl enable mongod

5.install git

yum install git -y

6. Install RC
wget https://github.com/WideChat/Rocket.Chat/archive/refs/tags/v4.6.3.widechat-0.tar.gz
tar -xvf Rocket.Chat-4.6.3.widechat-0.tar.gz
cd /tmp/Rocket.Chat-4.6.3.widechat-0/server
npm install ### (Does it means to run install in the server directory?)
sudo mv /root/Rocket.Chat-4.6.3.widechat-0 /opt/Rocket.Chat
useradd -M rocketchat
usermod -L rocketchat
chown -R rocketchat:rocketchat /opt/Rocket.Chat
vi /lib/systemd/system/rocketchat.service
[Unit]
Description=The Rocket.Chat server
After=network.target remote-fs.target nss-lookup.target nginx.target mongod.target
[Service]
ExecStart=/usr/local/bin/node /opt/Rocket.Chat/main.js ### (There is no main.js file after installation)
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=rocketchat
User=rocketchat
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01 MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01 ROOT_URL=http://localhost:3000/ PORT=3000
[Install]
WantedBy=multi-user.target
systemctl enable --now rocketchat.service
firewall-cmd --permanent --add-port=3000/tcp
firewall-cmd --reload

7. Login RC
http://URL:3000

It will be highly appreciated if you could give some instructions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant