Create the first administrator

After you deploy your server, the first user to register becomes the administrator, with power to set other users as administrators.

In case your server has no administrators, you can create the first admin account by defining the environment variables ADMIN_PASS and ADMIN_EMAIL once.

export ROOT_URL=
export MONGO_URL=mongodb://localhost:27017/rocketchat
export PORT=3000
export ADMIN_USERNAME=admin
export ADMIN_PASS=supersecret
node main.js
Edit on GitHub