Mac OS installation guide
Open terminal app and run the following commands
Installing the standalone Command Line Tools
Open terminal app and write the code below
xcode-select --install
Install Homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Git
brew update
brew install git
Install RVM
You need software-properties-common installed in order to add PPA repositories.
\curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
Install Ruby
Chatwoot APIs are built on Ruby on Rails, you need install ruby 2.6.5
rvm install ruby-2.6.5
Use ruby 2.6.5 as default
rvm use 2.6.5 --default
Install Node.js
Install Node.js from NodeSoure using the following commands
brew install node
Install yarn
We use
yarn
as package managerbrew install yarn
Install postgres
The database used in Chatwoot is PostgreSQL. Use the following commands to install postgres.
brew install postgresql
initdb /usr/local/var/postgres
/usr/local/Cellar/postgresql/<version>/bin/createuser -s postgres or /usr/local/opt/postgres/bin/createuser -s postgres which will just use the latest version.
either psql or postgres
Start manually:
pg_ctl -D /usr/local/var/postgres start
Stop manually:
pg_ctl -D /usr/local/var/postgres stop
Start automatically:
"To have launchd start postgresql now and restart at login:"
brew services start postgresql
The installation procedure created a user account called postgres that is associated with the default Postgres role. In order to use Postgres, you can log into that account.
sudo -u postgres psql
Install redis-server
Chatwoot uses Redis server in agent assignments and reporting. To install
redis-server
brew install redis
Enable Redis to start on system boot.
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.redis.plist
Download chatwoot from git hub
Install imagemagick
brew install imagemagick
bundle
Navigate to chatwoot-directory Copy configurations
./configure
# run db migrations
bundle exec rake db:create
bundle exec rake db:reset
# fireup the server
foreman start -f Procfile.dev
Login with credentials
http://localhost:3000
user name: john@acme.inc
password: 123456
for port forwarding
echo "rdr pass inet proto tcp from any to any port 80 -> 127.0.0.1 port 8080" | sudo pfctl -ef -
No comments:
Post a Comment