I. workflow for publishing a change to nicholsonjf.com
- cd into ~/nicholsonjf.github.io a. git status to make sure there aren't any changes to commit
- cd into ~/virtualenv/pelican2 a. source bin/activate to enable virtualenv and pelican
- cd into ~/virtualenv/pelican2/nicholsonjf.com a. make devserver
- ssh -X ubu (on macbook, in xquartz terminal)
- cd into ~/virtualenv/pelican2/nicholsonjf.com/content a. use vim [filename] and make any desired changes
- confirm changes are okay to publish in xquartz
- To publish: a. make publish b. cd ~/nicholsonjf.github.io c. run git status to make sure files were published to directory d. run git branch to make sure 'ubuntu' branch is checked out e. run git add -A to make sure any new files/changes are staged f. run git commit -m "commit message" g. run git push origin ubuntu
- Go to github and submit a pull request from the ubuntu branch a. Then, confirm the pull request
- Changes should be live on nicholsonjf.com
II. workflow for backing up nicholsonjf.com internals
- cd into ~/virtualenv/pelican2/nicholsonjf.com
- make desired changes
- git status just to see what's going on
- git add -A to add any untracked files
- git commit -m "[commit note]"
- git push origin master and enter credentials
- check github to confirm backup completed successfully