Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@ services:

volumes:
mariadb-data:
postgresql-data:
postgresql-data:
23 changes: 13 additions & 10 deletions scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,15 @@ fi
rm -rf /workspaces/frappe_codespace/.git

source /home/frappe/.nvm/nvm.sh
nvm alias default 18
nvm use 18
nvm install 22
nvm alias default 22
nvm use 22

echo "nvm use 18" >> ~/.bashrc
echo "nvm use 22" >> ~/.bashrc
cd /workspace

npm install -g yarn

bench init \
--ignore-exist \
--skip-redis-config-generation \
Expand All @@ -26,19 +29,19 @@ cd frappe-bench

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

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


bench new-site dev.localhost \
--mariadb-root-password 123 \
--db-root-username root \
--db-root-password 123 \
--admin-password admin \
--no-mariadb-socket
--mariadb-user-host-login-scope='%'

bench --site dev.localhost set-config developer_mode 1
bench --site dev.localhost clear-cache
bench use dev.localhost
bench use dev.localhost