Skip to content

Instantly share code, notes, and snippets.

@pmanijak
Last active August 29, 2015 14:06
Show Gist options
  • Save pmanijak/59995b5a1f729b84a2e8 to your computer and use it in GitHub Desktop.
Save pmanijak/59995b5a1f729b84a2e8 to your computer and use it in GitHub Desktop.
Circle Blvd: Migration Guide
How to move Circle Blvd to a new server, a rough guide:
1. Setup CouchDB and Node
2. Use ssh to replicate. Something like this:
$ curl -X POST http://localhost:5984/_replicate -H 'Content-Type: application/json' -d '{"source":"http://localhost:9000/circle-blvd","target":"http://localhost:9001/circle-blvd","create_target":true}'
$ curl -X POST http://localhost:5984/_replicate -H 'Content-Type: application/json' -d '{"source":"http://localhost:9000/circle-blvd-sessions","target":"http://localhost:9001/circle-blvd-sessions","create_target":true}'
3. Copy the SSL certificates
4. If you're using the 'domain-name' setting, set that to null for the time being (using Futon).
5. Set up the crontab to match
6. Set up the backups
7. Test it out!
8. To update again before going live:
curl -X POST http://localhost:5984/_replicate -H 'Content-Type: application/json' -d '{"source":"http://localhost:9000/circle-blvd","target":"http://localhost:9001/circle-blvd"}'
curl -X POST http://localhost:5984/_replicate -H 'Content-Type: application/json' -d '{"source":"http://localhost:9000/circle-blvd-sessions","target":"http://localhost:9001/circle-blvd-sessions"}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment