From 3ebd54259c6359ccb19b1f50775557266bfa0037 Mon Sep 17 00:00:00 2001 From: Harshil Jani Date: Sun, 12 Jun 2022 15:40:02 +0000 Subject: [PATCH 1/4] Setting up gitpod Setup --- .gitpod.yml | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000..df03caa --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,9 @@ +# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ +tasks: + - init: npm run dev + command: echo 'start script' + +# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/ +ports: + - port: 3000 + onOpen: open-preview From 290dbb9f6ba951e2f4aac9cc462f2161c68b3cea Mon Sep 17 00:00:00 2001 From: Harshil Jani Date: Sun, 12 Jun 2022 15:42:20 +0000 Subject: [PATCH 2/4] Gitpod Setup From 4512737361b3b5f889159ae69bdbfbd8355dda8a Mon Sep 17 00:00:00 2001 From: Harshil Jani <79367883+Harshil-Jani@users.noreply.github.com> Date: Sun, 12 Jun 2022 21:38:54 +0530 Subject: [PATCH 3/4] Add Gitpod button in Readme --- portal/README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/portal/README.md b/portal/README.md index b12f3e3..0543804 100644 --- a/portal/README.md +++ b/portal/README.md @@ -1,3 +1,5 @@ +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/Harshil-Jani/x-admin/edit/main/portal/README.md) + This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). ## Getting Started From 24db20045dc71fa55f4c342cc19afe3127b70a50 Mon Sep 17 00:00:00 2001 From: Harshil Jani <79367883+Harshil-Jani@users.noreply.github.com> Date: Sun, 12 Jun 2022 21:44:19 +0530 Subject: [PATCH 4/4] Update .gitpod.yml --- .gitpod.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index df03caa..5586c6b 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,7 +1,11 @@ # List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ tasks: - - init: npm run dev - command: echo 'start script' + - init: docker-compose up -d --build \ + command: echo 'Composing the project Docker' + - init: cd portal \ + command: echo 'Move to Portal directory' + - init: npm run dev + command: echo 'Starting the Server' # List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/ ports: