Skip to content

Instantly share code, notes, and snippets.

@michaeldauria
Created March 16, 2012 01:09
Show Gist options
  • Save michaeldauria/2048022 to your computer and use it in GitHub Desktop.
Save michaeldauria/2048022 to your computer and use it in GitHub Desktop.
Migrating from Copycopter to your own instance
Once you have your own instance of copycopter-server running, you need to do the following:
1. Create a new project and take note of its hostname and api key
2. Make sure you are on the latest version of the copycopter_client gem, at the time of this writing it is 2.0.0
3. Export the latest version of your published drafts:
$ RAILS_ENV=production bundle exec rake copycopter:export
4. Update your config/initializers/copycopter.rb to point to your new instance. This includes the hostname and api key at a minimum
CopycopterClient.configure do |config|
config.api_key = 'API_KEY'
config.host = 'copycopter.mydomain.com'
config.secure = false # this is true by default
end
5. Run your app in development mode and wait for a message like so:
** [Copycopter] [P:70539] [T:70171207406360] Uploaded missing translations
6. Stop your app and publish all keys
$ bundle exec rake copycopter:deploy
7. Double check that all keys exist on your instance
8. Delete the config/locales/copycopter.yml, this will ensure that your tests will pass as they will use the default values instead of those provided by Copycopter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment