shubham AK
shubham AK

Reputation: 292

Deploying Meteor App Using Script

How can we create the meteor deploying script. Currently we need to enter following command manually for deploying the app -

How to make simple shell script for above commands?

Upvotes: 2

Views: 203

Answers (1)

Styx
Styx

Reputation: 10076

First, you should create meteor session file:

METEOR_SESSION_FILE=meteor-login.json meteor login

After successful login the meteor-login.json file will be created and it could be used later to deploy to the same account without the need to manually enter login/password.

Now, you can write sh script to deploy:

#!/bin/sh
METEOR_SESSION_FILE=meteor-login.json DEPLOY_HOSTNAME=galaxy.meteor.com meteor deploy <server> --settings <path-to-settings-file>

Don't forget to replace <server> and <path-to-settings-file> with actual values.

Upvotes: 1

Related Questions