-
Notifications
You must be signed in to change notification settings - Fork 4
Build: Server
If you have SSH access to the union server then you don't need a local copy of the repo to build and deploy the website.
Log in with whatever your preferred ssh client is. Then navigate to the repo in the caving folder:
cd /home/users/website/rcc/caving/source
To build the site (and incorporate any changes) checkout the master branch and pull the latest changes:
git checkout master
git pull
Then you can run the build script:
./union_build
This will do a git pull then build the site. The output will be placed in the output folder. Make sure you get no errors and then deploy it:
./union_deploy
This is just a cp command really!
It's a good idea to test it first though so you can run:
./testbuild
Again the output will be in the output folder, except this time all the links will be relative to the output folder (i.e. everything should work). To test it go to:
https://union.ic.ac.uk/rcc/caving/source/output/
In a browser. Once you're happy run the build script then the deploy script as above.