Deploy Chatwoot on Ubuntu 24.04 LTS using the automated installation script
This guide will help you install Chatwoot on Ubuntu 24.04 LTS. We have prepared a deployment script for you to run. Refer to the script and feel free to make changes accordingly to the operating system if you are on a non-Ubuntu system.
If you plan to use a domain with chatwoot, please add an A record before proceeding. Refer to the Configuring the installation domain
section below.
The script will take care of the initial Chatwoot setup.
Chatwoot Installation will now be accessible at http://{your_ip_address}:3000
or if you opted for domain setup, it will be at https://chatwoot.mydomain.com
.
This will also install the Chatwoot CLI(cwctl
) starting with Chatwoot v2.7.0. Use cwctl --help
to learn more.
A
record for chatwoot.mydomain.com
on your domain management system and point it towards the installation IP address.yes
when prompted about domain setup.https://chatwoot.mydomain.com
now.For your Chatwoot installation to properly function, you would need to configure the essential environment variables like FRONTEND_URL
, Mailer, and a cloud storage config. Refer Environment variables for the full list.
Refer Environment variables and update the required variables. Save the .env
file.
If you have Chatwoot CLI(cwctl
) installed, use cwctl -r
.
Whenever a new version of Chatwoot is released, use the following steps to upgrade your instance.
If you have Chatwoot CLI(cwctl
) installed, use cwctl --upgrade
to upgrade your Chatwoot installation.
To install cwctl
, refer this section below.
If you are on an older version of Chatwoot(< 2.7), follow the manual upgrade steps below if you face errors with cwctl
.
Run the following steps on your VM. Make changes based on your OS if you are on a non-Ubuntu system.
If you have Chatwoot CLI(cwctl
) installed, use cwctl -c
.
If you have Chatwoot CLI(cwctl
) installed, use cwctl -l web
or cwctl -l worker
.
Run the following commands in your ubuntu shell
If you used an older version of install script(< 2.0), you will not have cwctl
in your PATH. To install/upgrade Chatwoot CLI,
The above command requires root access to install cwctl
to /usr/local/bin
.
If the asset precompilation step fails with ActionView::Template::Error (Webpacker can't find application.css in /home/chatwoot/chatwoot/public/packs/manifest.json)
or if you face issues while restarting the server, try the following command and restart the server.
This command would clear the existing compiled assets and would recompile all the assets. Read more about it here