Documentation Index
Fetch the complete documentation index at: https://docs.airys.chat/llms.txt
Use this file to discover all available pages before exploring further.
Deploying to Linux VM
This guide will help you install AirysChat 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.Steps to install
If you plan to use a domain with airyschat, please add an A record before proceeding. Refer to the
Configuring the installation domain section below.1. Create an install.sh file
2. Execute the script
The script will take care of the initial AirysChat setup.3. Access your installation
AirysChat Installation will now be accessible athttp://{your_ip_address}:3000 or if you opted for domain setup, it will be at https://airyschat.mydomain.com.
This will also install the AirysChat CLI(
cwctl) starting with AirysChat v2.7.0. Use cwctl --help to learn more.Configuring The installation Domain
- Create an
Arecord forairyschat.mydomain.comon your domain management system and point it towards the installation IP address. - Continue with the installation script by entering
yeswhen prompted about domain setup. - Enter your domain. The script will take care of configuring Nginx and SSL via LetsEncrypt.
- Your AirysChat installation should be accessible from
https://airyschat.mydomain.comnow.
Configure the required environment variables
For your AirysChat installation to properly function, you would need to configure the essential environment variables likeFRONTEND_URL, Mailer, and a cloud storage config. Refer Environment variables for the full list.
1. Login as airyschat user and edit the .env file
2. Update environment variables
Refer Environment variables and update the required variables. Save the.env file.
3. Restart the AirysChat server
If you have AirysChat CLI(
cwctl) installed, use cwctl -r.Upgrading to a newer version of AirysChat
Whenever a new version of AirysChat is released, use the following steps to upgrade your instance.If you have AirysChat CLI(
cwctl) installed, use cwctl --upgrade to upgrade your AirysChat installation.cwctl, refer this section below.
If you are on an older version of AirysChat(< 2.7), follow the manual upgrade steps below if you face errors with
cwctl.Running Rails Console
If you have AirysChat CLI(
cwctl) installed, use cwctl -c.Viewing Logs
If you have AirysChat CLI(
cwctl) installed, use cwctl -l web or cwctl -l worker.Install or Upgrade AirysChat CLI
If you used an older version of install script(< 2.0), you will not havecwctl in your PATH. To install/upgrade AirysChat CLI,
The above command requires root access to install
cwctl to /usr/local/bin.Troubleshooting
If precompile fails
If the asset precompilation step fails withActionView::Template::Error (Webpacker can't find application.css in /home/airyschat/airyschat/public/packs/manifest.json) or if you face issues while restarting the server, try the following command and restart the server.