Ubuntu Development Setup
This guide will help you set up your Ubuntu development environment for contributing to Chatwoot. These instructions work for Ubuntu 20.04, 22.04, and newer versions.Update System Packages
Open a terminal and run the following commands to update your system packages:Install Git
Install Git for version control:Install RVM
You need software-properties-common installed in order to add PPA repositories:Run command as a login shell
in terminal Preferences
. Restart your computer after installation.
Install Ruby
Chatwoot APIs are built on Ruby on Rails. You need to install Ruby 3.3.3:Install Node.js
Chatwoot requires Node.js version20
. Install Node.js from NodeSource using the following commands:
Install pnpm
We usepnpm
as the package manager:
Install PostgreSQL
The database used in Chatwoot is PostgreSQL. Use the following commands to install PostgreSQL:libpq-dev
dependencies for Ubuntu:
Install Redis Server
Chatwoot uses Redis server in agent assignments and reporting. You need to installredis-server
:
Install ImageMagick
Install ImageMagick for image processing:Troubleshooting Common Issues
RVM installation fails
RVM installation fails
Solution: Ensure you have restarted your computer and enabled “Run command as a login shell”:
Ruby installation fails
Ruby installation fails
Solution: Install missing dependencies:
PostgreSQL connection issues
PostgreSQL connection issues
Solution: Configure PostgreSQL user and database:
Node.js installation issues
Node.js installation issues
Solution: Clear cache and reinstall:
Permission denied errors
Permission denied errors
Solution: Fix ownership of common directories:
Getting Help
If you encounter issues:- Common Errors: Check Common Errors
- Discord Community: Join our Discord
- GitHub Issues: Create an issue
- Ubuntu Community: Ubuntu Forums
Your Ubuntu development environment is now ready for Chatwoot development! 🐧