Skip to content

Deploying to Washington Poly

Pat S. Sabpisal edited this page Mar 3, 2016 · 6 revisions

Prerequisites

  1. You must have your public key registered on Washington Poly.
  2. The environment you run npm or git has access to that public key file. On Windows, using git bash will be easiest!
  3. Add remote git remote add live ssh://[email protected]/var/www/colsp.git
  4. Commit all changes, or stash. Clear your stage.

Steps

1. Merge ahancer-dev into production

git checkout production
git merge -Xtheirs ahancer-dev

2. Make sure angular/config.js is correct

It should contain the correct base url : http://ahancer-colsp.azurewebsites.net/api

3. Deploy

git push live production

Note, step 3 will fail if you do not have proper public key.

  1. If you run npm in git bash directly, the key at ~/.ssh/id_rsa.pub will be used.

  2. If you run npm in cmd, it won't work unless you have git in your PATH - which will look for id_rsa.pub in ~/.ssh