mirror of
https://github.com/zammad/zammad
synced 2026-05-24 09:48:36 +00:00
33 lines
743 B
Bash
Executable file
33 lines
743 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
env
|
|
|
|
# Ensure proper permissions on root-mounted volumes.
|
|
sudo chown -R "${USER}" node_modules .pnpm-store
|
|
|
|
pnpm setup
|
|
export PNPM_HOME="${HOME}/.local/share/pnpm"
|
|
export PATH="${PNPM_HOME}:${PATH}"
|
|
pnpm config set store-dir "$(pwd)/.pnpm-store" --global
|
|
|
|
bin/setup --skip-server
|
|
|
|
echo "== Precompile Ruby cache =="
|
|
|
|
bundle exec bootsnap precompile --gemfile app/ lib/
|
|
|
|
echo "== Configure Elasticsearch URL =="
|
|
|
|
bundle exec rails r "Setting.set('es_url', 'http://elasticsearch:9200')"
|
|
|
|
echo "== Run auto_wizard setup =="
|
|
|
|
bundle exec rails zammad:setup:auto_wizard
|
|
|
|
echo "== Rebuild search index =="
|
|
|
|
bundle exec rails zammad:searchindex:rebuild
|
|
|
|
echo "== Precompile frontend assets =="
|
|
|
|
bundle exec rails assets:precompile
|