Fixes
This commit is contained in:
@@ -91,6 +91,9 @@ $STD systemctl enable --now redis-server
|
|||||||
msg_ok "Configured ERPNext"
|
msg_ok "Configured ERPNext"
|
||||||
|
|
||||||
msg_info "Setting up Production"
|
msg_info "Setting up Production"
|
||||||
|
BENCH_PY="/home/frappe/.local/share/uv/tools/frappe-bench/bin/python"
|
||||||
|
$STD sudo -u frappe "${BENCH_PY}" -m ensurepip --upgrade || \
|
||||||
|
$STD sudo -u frappe bash -c "curl -fsSL https://bootstrap.pypa.io/get-pip.py | \"${BENCH_PY}\""
|
||||||
$STD sudo -u frappe bash -c 'export PATH="$HOME/.local/bin:$PATH"; uv tool install ansible'
|
$STD sudo -u frappe bash -c 'export PATH="$HOME/.local/bin:$PATH"; uv tool install ansible'
|
||||||
ln -sf /home/frappe/.local/bin/ansible* /usr/local/bin/
|
ln -sf /home/frappe/.local/bin/ansible* /usr/local/bin/
|
||||||
$STD bash -c 'export PATH="/home/frappe/.local/bin:$PATH"; cd /opt/frappe-bench && bench setup production frappe --yes'
|
$STD bash -c 'export PATH="/home/frappe/.local/bin:$PATH"; cd /opt/frappe-bench && bench setup production frappe --yes'
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ $STD su - postgres -c "psql -d ${PG_DB_NAME} -c '
|
|||||||
CREATE EXTENSION IF NOT EXISTS unaccent;
|
CREATE EXTENSION IF NOT EXISTS unaccent;
|
||||||
CREATE OR REPLACE FUNCTION public.unaccent_immutable(input text)
|
CREATE OR REPLACE FUNCTION public.unaccent_immutable(input text)
|
||||||
RETURNS text LANGUAGE sql IMMUTABLE
|
RETURNS text LANGUAGE sql IMMUTABLE
|
||||||
AS \$\$SELECT public.unaccent(\$\$public.unaccent\$\$::regdictionary, input)\$\$;
|
AS \$func\$SELECT public.unaccent(\$\$public.unaccent\$\$::regdictionary, input)\$func\$;
|
||||||
'"
|
'"
|
||||||
$STD npx -y typeorm migration:run -d dist/database/typeorm/core/core.datasource
|
$STD npx -y typeorm migration:run -d dist/database/typeorm/core/core.datasource
|
||||||
msg_ok "Ran Database Migrations"
|
msg_ok "Ran Database Migrations"
|
||||||
|
|||||||
Reference in New Issue
Block a user