P2 Magazine
How to push to your own staging
- Fork the
distributedlife/p2
repository - Checkout
your_fork/p2
and make sureorigin
is the name of the remote - Ensure there is a branch called
gh-pages
in your new fork - be careful: The script
rm -rf *
the../public
and../redirects
folder from whereverpublish.sh
is called. Make sure you don't have such folders. ./publish.sh "some commit message"
- This script will call
rake generate
- It will delete the
../public
and../redirects
folders - It will then copy
public
andredirects
up a directory - It will then checkout the
gh-pages
branch - It does a
pull --rebase
- It will
rm -rf *
the entire repo - It will copy back in the
public
andredirects
- It adds all the things into the repo
- It makes a commit using your message
- It pushes to
origin gh-pages
- It checks out source.
How to push to PRODUCTION
We publish a new issue on the first Tuesday of each month.
- Make sure you have push rights to
thoughtworks/p2
- Add a remote called
tw
that goes tothoughtworks/p2
- Run the
./to_prod_and_beyond.sh
. It's exactly the same as thepublish.sh
script except the repo is hard-coded totw gh-pages