From a0d6fe388e5ad1a7be284329ec56c775e1fbeb42 Mon Sep 17 00:00:00 2001 From: Anik Dhabal Babu Date: Fri, 10 Nov 2023 15:07:28 +0000 Subject: [PATCH 1/3] add gitpod config file --- .gitpod.yml | 26 ++++++++++++++++++++++++++ README.md | 8 ++++++++ 2 files changed, 34 insertions(+) create mode 100644 .gitpod.yml diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 0000000000000..5f6bb06224cb3 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,26 @@ +tasks: + - init: | + nvm install $(jq -r .engines.node package.json) && + curl https://install.meteor.com/?release=$(curl -so- https://raw.githubusercontent.com/RocketChat/Rocket.Chat/develop/apps/meteor/.meteor/release | cut -d@ -f2) | sh && + export PATH=$PATH:/home/gitpod/.meteor && + yarn && + export ROOT_URL=$(gp url 3000) + command: yarn build && yarn dev + +ports: + - port: 3000 + visibility: public + onOpen: open-preview + +github: + prebuilds: + master: true + pullRequests: true + pullRequestsFromForks: true + addCheck: true + addComment: true + addBadge: true + +vscode: + extensions: + - esbenp.prettier-vscode \ No newline at end of file diff --git a/README.md b/README.md index a63baba65dd00..64dec811e1ca7 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,14 @@ yarn dsv # run only meteor (front and back) with pre-built packages After initialized, you can access the server at http://localhost:3000 +# Gitpod Setup + +1. Click the button below to open this project in Gitpod. + +2. This will open a fully configured workspace in your browser with all the necessary dependencies already installed. + +[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/RocketChat/Rocket.Chat) + **Starting Rocket.Chat in microservices mode:** ```bash From dfd4042a2417db1afa8d2a2b45e6194865466a27 Mon Sep 17 00:00:00 2001 From: Debdut Chakraborty Date: Sun, 19 Nov 2023 20:27:10 +0530 Subject: [PATCH 2/3] Update .gitpod.yml --- .gitpod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 5f6bb06224cb3..4c25ee48475a5 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -2,7 +2,7 @@ tasks: - init: | nvm install $(jq -r .engines.node package.json) && curl https://install.meteor.com/?release=$(curl -so- https://raw.githubusercontent.com/RocketChat/Rocket.Chat/develop/apps/meteor/.meteor/release | cut -d@ -f2) | sh && - export PATH=$PATH:/home/gitpod/.meteor && + export PATH="$PATH:$HOME/.meteor" && yarn && export ROOT_URL=$(gp url 3000) command: yarn build && yarn dev From 6c1f393b97cc4b9a4f49f22a505aa77ee0d93cd3 Mon Sep 17 00:00:00 2001 From: Debdut Chakraborty Date: Sun, 19 Nov 2023 20:29:10 +0530 Subject: [PATCH 3/3] Update .gitpod.yml --- .gitpod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitpod.yml b/.gitpod.yml index 4c25ee48475a5..e24ff7d2ebf11 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,7 +1,7 @@ tasks: - init: | nvm install $(jq -r .engines.node package.json) && - curl https://install.meteor.com/?release=$(curl -so- https://raw.githubusercontent.com/RocketChat/Rocket.Chat/develop/apps/meteor/.meteor/release | cut -d@ -f2) | sh && + curl https://install.meteor.com/ | sh && export PATH="$PATH:$HOME/.meteor" && yarn && export ROOT_URL=$(gp url 3000)