webplatform / ops

http://webplatform.github.io/ops/
5 stars 1 forks source link

Redeploy specs.webplatform.org in new production environment #90

Closed renoirb closed 9 years ago

renoirb commented 9 years ago

Move from old DHO environment current scripts. Will automate in webplatform/ops#104

Tasks

renoirb commented 9 years ago

Needs to sync with @darobin on how to automate. Will work on it soon.

renoirb commented 9 years ago

Worked on initial deployment:

  1. Copy around latest dist archive from /srv/code/packages/specs/dists/
  2. rsync to server ONLY IF no /srv/webplatform/specs/index.html exists (i.e. VM is new) so that it doesnt overwrite in subsequent salt -G 'roles:specs' state.sls code

Also had to:

  1. Found issue with error page that calls through non SSL fonts and would throw mixed content, made specific rewrite for now.
renoirb commented 9 years ago

@darobin, you can rsync code now to specs.production.wpdn at any time now :)

renoirb commented 9 years ago

I’ll change DNS records only when you are ready. Of course.

renoirb commented 9 years ago

UPDATE 2015-05-13: This is now invalid. We’ll use direct hostname instead rsync.specs.webplatform.org

Forgot to give public IP address you can use to test.

In your hosts file

173.236.255.113 specs.webplatform.org

But you MUST use specs.production.wpdn.

renoirb commented 9 years ago

@darobin I’d like to sync with you on how we’ll setup the GitHub hook. I’ve prepared a Docker runner for publican and also how to setup a hook system that can automate anything we need. This can be done easily, I just want to get your feeling about it before going any further.

renoirb commented 9 years ago

In relation to the Docker container, refer to webplatform/ops#153

renoirb commented 9 years ago

This feels dangerous as anybody with access can just write anything anywhere and make tamper manually with publican, and its configs. Letting this could prevent us to rebuild the service completely due to changes made directly.

It’ll do to suit the specific current request.

renoirb commented 9 years ago

Made the switch 24h ago.