From 6ace93bdbf262a7c28a446e22b26a86d55d4bf10 Mon Sep 17 00:00:00 2001 From: Ali BARIN Date: Thu, 21 Nov 2024 10:17:43 +0000 Subject: [PATCH] fix(devcontainer): remove yarn workspaces --- .devcontainer/boot.sh | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/.devcontainer/boot.sh b/.devcontainer/boot.sh index 77712a03..15efc5f8 100644 --- a/.devcontainer/boot.sh +++ b/.devcontainer/boot.sh @@ -5,8 +5,11 @@ BACKEND_PORT=3000 WEB_PORT=3001 echo "Configuring backend environment variables..." + cd packages/backend + rm -rf .env + echo " PORT=$BACKEND_PORT WEB_APP_URL=http://localhost:$WEB_PORT @@ -21,23 +24,35 @@ WEBHOOK_SECRET_KEY=sample_webhook_secret_key APP_SECRET_KEY=sample_app_secret_key REDIS_HOST=redis SERVE_WEB_APP_SEPARATELY=true" >> .env + +echo "Installing backend dependencies..." + +yarn + cd $CURRENT_DIR echo "Configuring web environment variables..." + cd packages/web + rm -rf .env + echo " PORT=$WEB_PORT REACT_APP_BACKEND_URL=http://localhost:$BACKEND_PORT " >> .env -cd $CURRENT_DIR -echo "Installing and linking dependencies..." +echo "Installing web dependencies..." + yarn +cd $CURRENT_DIR + echo "Migrating database..." + cd packages/backend + yarn db:migrate yarn db:seed:user -echo "Done!" \ No newline at end of file +echo "Done!"