Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ravish shankar
camp
Commits
61010e05
Commit
61010e05
authored
Sep 17, 2021
by
Bady
Browse files
Add instructions to update website
parent
db450684
Changes
1
Hide whitespace changes
Inline
Side-by-side
website/README.md
View file @
61010e05
...
...
@@ -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.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment