-
Notifications
You must be signed in to change notification settings - Fork 1
Deploy Tutorial
Eira Rangel edited this page Sep 19, 2019
·
4 revisions
Deploying requires for your working directory to be clean. This is to ensure the release revision via git is correct.
- Navigate to your root folder and in the
.bash_profileadd the MSL variables along with the FALMER_TOKEN, ask website devs to provide this information. - Git clone the
mls-deployrepository if you do not have it in your directory:git clone https://github.com/sussexstudent/msl-deploy.git, the directory structure could be something like this:- SU
- mls-deploy
- website
- SU
- Run
yarn prepackinside the mls-deploy folder to setup everything - Go to the website directory and create a file named
.s3cfg, inside that file save the access key and secret key provided by the developers
- Go to the website directory inside packages:
website/packages/website - Run
yarn deployin the terminal, this would generate adeploy.jsonfile in the directory - From the website folder where the JSON file was written, run the following command:
../../../msl-deploy/bin/run deploy.json - It would run an automatic script that will write the JSON file content into the Student Union website, if everything was successful, you will see your latest changes published on the website
1. Log in failed when running the deploy.json file
-
Check if your username and password are correct logging in from the Student Union website, avoid using special characters for the username and do not add the @sussexstudent.com at the end of the username (neither on the bash profile file), example: msldeployeira
-
Try to log out completely from the website if you are logged in with another email account