If changes to the Hoaxy interface are made, the updates need to be deployed before they will appear on the live site.
General changes to the functionality of the interface should be made to the master
git branch and then merged into this deployment
branch.
Changes specific to the live Branded Hoaxy Website at http://hoaxy.osome.iu.edu can and should be made directly to this deployment
branch. This includes updates to the FAQ or changes to the Hoaxy or IU branding not found in the generic version.
-
Log into
lisa
using the truthy user. -
cd to the repository:
cd /home/data/apps/hoaxy/hoaxy-frontend
-
Confirm that you are on the development branch:
git branch
should display a list of branches anddeployment
should have a*
next to it as follows:truthy@lisa:~/home/data/apps/hoaxy/hoaxy-frontend$ git branch * deployment master truthy@lisa:~/home/data/apps/hoaxy/hoaxy-frontend$
-
If not on
deployment
branch, switch branch to deployment usinggit checkout deployment
-
Make changes using your favorite editor (e.g.
nano frontend/faq.html
). Save your work. -
Commit changes (e.g.
git commit -a -m 'Updates FAQ'
) -
Push the changes to github:
git push origin deployment
-
Run the deployment script:
./deploy_website.sh
-
Confirm the website was successfully updated.
-
If successful, celebrate.
-
If not successful, Don't panic and contact a developer.
-
Log into github.com
-
Go to the deployment branch of the frontend repository: https://github.com/IUNetSci/hoaxy-frontend/tree/deployment
-
Open a file that you want to edit.
-
Using the pencil icon at the top of the code listing to "Edit this file"
-
Make changes to the file.
-
Add a commit message and make sure to select the radio button: "Commit directly to the
deployment
branch." -
Click "Commit changes" to commit the changes.
-
Log into
lisa
as the truthy user using your favorite SSH terminal -
cd to the repository:
cd /home/data/apps/hoaxy/hoaxy-frontend
-
Confirm that you are on the development branch:
git branch
should display a list of branches anddevelopment
should have a*
next to it as follows:truthy@lisa:~/home/data/apps/hoaxy/hoaxy-frontend$ git branch * deployment master truthy@lisa:~/home/data/apps/hoaxy/hoaxy-frontend$
-
If not on
deployment
branch, switch branch to deployment usinggit checkout deployment
-
Pull changes from the github repo:
git pull origin deployment
-
Run the deployment script:
./deploy_website.sh
-
Confirm the website was successfully updated.
-
If successful, celebrate.
-
If not successful, Don't panic and contact a developer.
This method assumes you already have a local development environment configured and the repo cloned to your local environment.
-
Confirm that you are on the
deployment
branch -
If not on
deployment
branch, switch branch to deployment (e.g.git checkout deployment
) -
Pull any remote changes to sync your repo with the latest updates in github:
git pull origin deployment
-
Make your updates, save your files, commit your changes.
-
Push your changes to the github repo:
git push origin deployment
-
Log into
lisa
as the truthy user using your favorite SSH terminal -
cd to the repository:
cd /home/data/apps/hoaxy/hoaxy-frontend
-
Confirm that you are on the development branch:
git branch
should display a list of branches anddevelopment
should have a*
next to it as follows:truthy@lisa:~/home/data/apps/hoaxy/hoaxy-frontend$ git branch * deployment master truthy@lisa:~/home/data/apps/hoaxy/hoaxy-frontend$
-
If not on
deployment
branch, switch branch to deployment usinggit checkout deployment
-
Pull changes from the github repo:
git pull origin deployment
-
Run the deployment script:
./deploy_website.sh
-
Confirm the website was successfully updated.
-
If successful, celebrate.
-
If not successful, Don't panic and contact a developer.