Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // To install
- # You need Ruby and Rails (https://pastebin.com/BR9eYkwv)
- mkdir /home/Chatwoot
- cd /home/Chatwoot
- git init
- git remote add origin https://github.com/chatwoot/chatwoot.git
- git pull origin develop
- git branch -m develop
- rm -r .* *.md LICENSE *.lock
- wget https://github.com/chatwoot/chatwoot/raw/develop/.env.example -O .env
- bundle install
- RAILS_ENV=production rake db:setup
- RAILS_ENV=production rake db:migrate
- RAILS_ENV=production rake db:seed
- yarn
- RAILS_ENV=production rails assets:precompile
- # For debugging
- rails server -e production -b 0.0.0.0 -p 4679
- # For background use
- rails server -e production -d -b 0.0.0.0 -p 4679
- // To uninstall
- lsof -i:4679 # Under COMMAND it says ruby, copy the PID one column to the right
- kill #id
- rm -r /home/Chatwoot
- psql << EOF
- DROP DATABASE chatwoot_test;
- DROP DATABASE chatwoot_dev;
- DROP DATABASE chatwoot_production;
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement