fix: update init scripts for consistent Redis configuration and branch usage
(cherry picked from commit c53e486bf0a0dfe902e16b1de6df3f5b59753c2d)
This commit is contained in:
parent
e3baeabbb4
commit
5eb3bcbf43
@ -8,21 +8,21 @@ else
|
|||||||
echo "Creating new bench..."
|
echo "Creating new bench..."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
bench init --skip-redis-config-generation frappe-bench
|
bench init --skip-redis-config-generation frappe-bench --version version-15
|
||||||
|
|
||||||
cd frappe-bench
|
cd frappe-bench
|
||||||
|
|
||||||
# Use containers instead of localhost
|
# Use containers instead of localhost
|
||||||
bench set-mariadb-host mariadb
|
bench set-mariadb-host mariadb
|
||||||
bench set-redis-cache-host redis:6379
|
bench set-redis-cache-host redis://redis:6379
|
||||||
bench set-redis-queue-host redis:6379
|
bench set-redis-queue-host redis://redis:6379
|
||||||
bench set-redis-socketio-host redis:6379
|
bench set-redis-socketio-host redis://redis:6379
|
||||||
|
|
||||||
# Remove redis, watch from Procfile
|
# Remove redis, watch from Procfile
|
||||||
sed -i '/redis/d' ./Procfile
|
sed -i '/redis/d' ./Procfile
|
||||||
sed -i '/watch/d' ./Procfile
|
sed -i '/watch/d' ./Procfile
|
||||||
|
|
||||||
bench get-app crm --branch develop
|
bench get-app crm --branch main
|
||||||
|
|
||||||
bench new-site crm.localhost \
|
bench new-site crm.localhost \
|
||||||
--force \
|
--force \
|
||||||
@ -32,8 +32,9 @@ bench new-site crm.localhost \
|
|||||||
|
|
||||||
bench --site crm.localhost install-app crm
|
bench --site crm.localhost install-app crm
|
||||||
bench --site crm.localhost set-config developer_mode 1
|
bench --site crm.localhost set-config developer_mode 1
|
||||||
bench --site crm.localhost clear-cache
|
|
||||||
bench --site crm.localhost set-config mute_emails 1
|
bench --site crm.localhost set-config mute_emails 1
|
||||||
|
bench --site crm.localhost set-config server_script_enabled 1
|
||||||
|
bench --site crm.localhost clear-cache
|
||||||
bench use crm.localhost
|
bench use crm.localhost
|
||||||
|
|
||||||
bench start
|
bench start
|
||||||
@ -18,9 +18,9 @@ echo "nvm use 18" >> ~/.bashrc
|
|||||||
cd /workspace
|
cd /workspace
|
||||||
|
|
||||||
bench init \
|
bench init \
|
||||||
--ignore-exist \
|
--ignore-exist \
|
||||||
--skip-redis-config-generation \
|
--skip-redis-config-generation \
|
||||||
frappe-bench
|
frappe-bench
|
||||||
|
|
||||||
cd frappe-bench
|
cd frappe-bench
|
||||||
|
|
||||||
@ -35,9 +35,9 @@ sed -i '/redis/d' ./Procfile
|
|||||||
|
|
||||||
|
|
||||||
bench new-site dev.localhost \
|
bench new-site dev.localhost \
|
||||||
--mariadb-root-password 123 \
|
--mariadb-root-password 123 \
|
||||||
--admin-password admin \
|
--admin-password admin \
|
||||||
--no-mariadb-socket
|
--no-mariadb-socket
|
||||||
|
|
||||||
bench --site dev.localhost set-config developer_mode 1
|
bench --site dev.localhost set-config developer_mode 1
|
||||||
bench --site dev.localhost clear-cache
|
bench --site dev.localhost clear-cache
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user