Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

meteor deploy should allow non-interactive login #5732

Closed
andrewtamura opened this issue Nov 30, 2015 · 3 comments
Closed

meteor deploy should allow non-interactive login #5732

andrewtamura opened this issue Nov 30, 2015 · 3 comments

Comments

@andrewtamura
Copy link

_1 Upvote_ meteor deploy current prompts for email and password. It would be super friendly for CI servers to allow a non-interactive way to deploy. Maybe something like meteor deploy -u USERNAME -p PASSWORD or event accepting a -t TOKEN option. We're currently using the .meteorsession workaround provided by Codeship https://github.com/codeship/scripts/blob/master/deployments/meteor.sh, but it would be easier to maintain if would could pass authentication credentials into the command line.

@tmeasday
Copy link
Contributor

tmeasday commented Dec 1, 2015

Thanks for the feature request! We welcome discussions about how to make Meteor better. If you haven't yet, check out our wiki page about feature requests on GitHub.

In the past, I've used something along the lines of printf "$user\n$password\n" | meteor login successfully.

@sathishc
Copy link

+1

@hwillson
Copy link
Contributor

As mentioned in #5732 (comment), printf will work for this purpose. Here's a quick CircleCI example:

...
deployment:
  production:
    branch: "master"
    commands:
      - printf "SomeUsername\nSomePassword\n" | meteor deploy somehost.com
...

That being said this is probably much less of an issue now that *.meteor.com hosting has been discontinued. Closing for now - thanks for posting this originally!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants