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
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ ssh-add

You can deploy the projects independently or both together with the following commands.

Deploy frontend and backend concurrently.
When deploying for the first time, use the following

```sh
bash install-deploy.sh
```

Post that deployment of frontend and backend can be done concurrently.

```sh
bash deploy-all.sh
Expand Down
4 changes: 3 additions & 1 deletion clone-sources.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
git clone https://github.com/GeriLife/wellbeing.git
cd wellbeing/app && meteor npm i && cd ../../

git clone https://github.com/GeriLife/wellbeing-client.git
git clone https://github.com/GeriLife/wellbeing-client.git
cd wellbeing-client/frontend && yarn && cd ../../
5 changes: 4 additions & 1 deletion deploy-all.sh
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
./node_modules/.bin/concurrently "./deploy-backend.sh" "./deploy-frontend.sh"
cd wellbeing/app && meteor npm i && cd ../../
cd wellbeing-client/frontend && yarn && cd ../../

sh ./deploy-backend.sh
2 changes: 2 additions & 0 deletions install-deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
sh clone-sources.sh
sh ./deploy-backend.sh
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"author": "Brylie Christopher Oxley <[email protected]> <[email protected]>",
"license": "MIT",
"private": false,
"dependencies": {
"concurrently": "^6.0.0"
}
"scripts": {
"deploy-frontend": "cd wellbeing-client/frontend && yarn serve"
},
"dependencies": {}
}