Commit 61010e05 authored by Bady's avatar Bady
Browse files

Add instructions to update website

parent db450684
......@@ -45,3 +45,10 @@ This will generate the files in a directory called `public`. These files can now
- 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.
### 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).
- 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.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment