Create a deployment_token.json
:
METEOR_SESSION_FILE=deployment_token.json meteor login
Create the following environment variables on Codeship: (https://codeship.com/projects/PROJECT_NUMBER/configure_environment)
{"sessions": {"www.meteor.com": {"session": "12345 ...
{"private": {...
Create a new deployment pipeline here https://codeship.com/projects/YOUR_PROJECT_NUMBER/deployment_branches/new
Add a "Custom Script" as your deployment with the following content:
echo $METEOR_TOKEN > deployment_token.json
echo $METEOR_SETTINGS > deployment_settings.json
meteor npm prune --production
DEPLOY_HOSTNAME=galaxy.meteor.com METEOR_SESSION_FILE=deployment_token.json meteor deploy $METEOR_TARGET --settings deployment_settings.json