Copy the Chatwoot (v4.14.0) frontend runnable subset into frontend/ for customization: - app/javascript/ (Vue SPA: dashboard, widget, sdk, portal, superadmin) - app/views/ (ERB templates for vite-plugin-ruby entrypoint resolution) - app/helpers/, app/assets/ (Rails view helpers, static assets) - enterprise/ (Enterprise edition frontend overlay) - config/vite.json, vite.config.ts, bin/vite (Vite-Rails toolchain) - package.json, pnpm-lock.yaml, tailwind/postcss/eslint configs - Gemfile, Gemfile.lock (vite_rails gem for bin/vite binstub) Excluded Rails backend: controllers, models, services, jobs, mailers, policies, db, lib, spec, public, node_modules. Update references to the new frontend location: - .gitignore: exclude frontend build artifacts (node_modules, tmp, packs), keep frontend/bin/ and frontend/vendor/ via negation - backend/scripts/parity_frontend_smoke.sh: CHATWOOT_DIR default reference/chatwoot -> ../frontend - backend/scripts/parity_frontend_browser_smoke.mjs: same default update - AGENTS.md: add frontend section with Rails/Vite coupling notes - README: architecture tree includes frontend/
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
# #
|
|
# #
|
|
# # Linux nightly installer action
|
|
# # This action will try to install and setup
|
|
# # chatwoot on an Ubuntu 22.04 machine using
|
|
# # the linux installer script.
|
|
# #
|
|
# # This is set to run daily at midnight.
|
|
# #
|
|
|
|
name: Run Linux nightly installer
|
|
on:
|
|
schedule:
|
|
- cron: "0 0 * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
nightly:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
|
|
- name: get installer
|
|
run: |
|
|
wget https://get.chatwoot.app/linux/install.sh
|
|
chmod +x install.sh
|
|
#fix for postgtres not starting automatically in gh action env
|
|
sed -i '/function configure_db() {/a sudo service postgresql start' install.sh
|
|
|
|
- name: create input file
|
|
run: |
|
|
echo "no" > input
|
|
echo "yes" >> input
|
|
|
|
- name: Run the installer
|
|
run: |
|
|
sudo ./install.sh --install < input
|
|
|
|
# disabling http verify for now as http
|
|
# access to port 3000 fails in gh action env
|
|
# - name: Verify
|
|
# if: always()
|
|
# run: |
|
|
# sudo netstat -ntlp | grep 3000
|
|
# sudo systemctl restart chatwoot.target
|
|
# curl http://localhost:3000/api
|
|
|
|
- name: Upload chatwoot setup log file as an artifact
|
|
uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: chatwoot-setup-log-file
|
|
path: /var/log/chatwoot-setup.log
|