Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quick notes on updating and deploying the website #16

Open
tompollard opened this issue Jul 7, 2020 · 2 comments
Open

Quick notes on updating and deploying the website #16

tompollard opened this issue Jul 7, 2020 · 2 comments
Labels
good first issue Good for newcomers

Comments

@tompollard
Copy link
Member

tompollard commented Jul 7, 2020

Here are some quick notes on how to make changes to the website (@tnaumann @alistairewj @corcra @irenetrampoline @mmcdermott):

  1. Install the requirements with pip install -r requirements.txt (or similar) preferably in a virtual environment.
  2. Check out a new working branch with git checkout -b NAME_OF_BRANCH. Make your changes!
  3. Test your changes locally by running make run. You should be able to view the site at: http://localhost:5000/
  4. If you are happy, add and commit your changes, git push to github, and then open a pull request to the main branch.
  5. Once a change is merged, run make deploy to deploy the changes to the live website.

If you see a new pull request, feel free to check it and merge it yourself! I think it will be easier to keep on top of things if there are a few people keeping an eye out for changes.

(When you deploy, you'll see some "Filename extension" warnings, which can be ignored. It looks like these relate to the .html extensions that are used in the template. These extensions aren't needed, but removing them now will break links that we've shared).

@corcra corcra added the good first issue Good for newcomers label Jul 16, 2020
@tnaumann
Copy link

N.B. before running make deploy you will likely need to create the two branches it's expecting to find as part of git branch -D:

git branch gh-pages
git branch temp-gh-pages

@tompollard
Copy link
Member Author

@tnaumann This should fixed since b4502f5 (the hyphens at the start of the line allow the build to continue even if the branches don't exist).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants