From 59163ad014b1a1d56b979f9565e1857c34bae55a Mon Sep 17 00:00:00 2001 From: Pirate Praveen <praveen@debian.org> Date: Tue, 28 Sep 2021 23:25:49 +0530 Subject: [PATCH] Clarify the README --- website/README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/website/README.md b/website/README.md index 49e986e..bb526fc 100644 --- a/website/README.md +++ b/website/README.md @@ -42,13 +42,14 @@ This will generate the files in a directory called `public`. These files can now ### Workflow for camp.fsci.in - Make necessary changes and commit the changes to git. -- Run the `generate-site` script (present in the Scripts folder in the root folder) from the website folder. -- Switch to the `production` branch. -- Run the `update` script, commit the changes in git and push the changes to production branch. +- Run the `generate-site` script (present in the Scripts folder in the root folder) from the website folder + (`cd website && ../scripts/generate-site`). +- Switch to the `production` branch (`git checkout production`). +- Run the `update` script, commit the changes in git and push the changes to production branch (cd .. && ./update). ### How to update website in production - First you need ssh access to the server ([contact](https://camp.fsci.in/#contact) the camp team for the same). -- Add the server as a remote: `git remote add camp ssh://USERNAME@monitor.fsci.in:camp/camp.git` (Replace USERNAME with the original username). +- Add the server as a remote: `git remote add camp ssh://USERNAME@monitor.fsci.in:/home/USERNAME/camp/camp.git` (Replace USERNAME with the original username). - Switch to the production branch: `git checkout production`. - Push the changes to the newly added remote: `git push camp production`. - That's it. A [post-receive hook](https://git-scm.com/docs/githooks) on the remote will update the website automagically. -- GitLab