IKHSAN
EN Read in EnglishID

opendesk

Publik
Branch
main
Commit terakhir
08d9f3328 Oktober 2026

init.sh

Buka raw
#!/bin/bash

if [ -d "/home/frappe/frappe-bench/apps/frappe" ]; then
    echo "Bench already exists, skipping init"
    cd frappe-bench
    bench start
else
    echo "Creating new bench..."
fi

bench init --skip-redis-config-generation frappe-bench --version develop

cd frappe-bench

# Use containers instead of localhost
bench set-mariadb-host mariadb
bench set-redis-cache-host redis://redis:6379
bench set-redis-queue-host redis://redis:6379
bench set-redis-socketio-host redis://redis:6379

# Remove redis, watch from Procfile
sed -i '/redis/d' ./Procfile
sed -i '/watch/d' ./Procfile

bench get-app telephony
bench get-app opendesk --branch main

bench new-site opendesk.localhost \
--force \
--mariadb-root-password 123 \
--admin-password admin \
--no-mariadb-socket

bench --site opendesk.localhost install-app telephony
bench --site opendesk.localhost install-app opendesk
bench --site opendesk.localhost set-config developer_mode 1
bench --site opendesk.localhost set-config mute_emails 1
bench --site opendesk.localhost set-config server_script_enabled 1
bench --site opendesk.localhost clear-cache
bench use opendesk.localhost

bench start
byte
1.152
baris
43
Jenis
sh
Commit terakhir
28 Oktober 2026