Snippets Collections
# Login as Chatwoot user

sudo -i -u chatwoot

 

# Navigate to the Chatwoot directory

cd chatwoot

 

# Pull the latest version of the master branch

git checkout master && git pull

 

# Update dependencies

bundle

yarn

 

# Recompile the assets

rake assets:precompile RAILS_ENV=production

 

# Migrate the database schema

RAILS_ENV=production bundle exec rake db:migrate

 

# Copy the updated targets

cp /home/chatwoot/chatwoot/deployment/chatwoot-web.1.service /etc/systemd/system/chatwoot-web.1.service

cp /home/chatwoot/chatwoot/deployment/chatwoot-worker.1.service /etc/systemd/system/chatwoot-worker.1.service

cp /home/chatwoot/chatwoot/deployment/chatwoot.target /etc/systemd/system/chatwoot.target

 

# Restart the chatwoot server

systemctl restart chatwoot.target
star

Thu Jul 15 2021 16:26:48 GMT+0000 (Coordinated Universal Time)

#chatwoot

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension