question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deploying with --token flag fails in Travis-CI

See original GitHub issue

Following the instructions in the README for v2, I’ve been unable to successfully deploy via Travis.

In my Travis repo settings I’ve set FIREBASE_TOKEN with the output from firebase prefs:token, and in my travis.yml I’ve replaced this:

after_success:
  firebase deploy --email ${FIREBASE_EMAIL} --password ${FIREBASE_PASSWORD}

with this:

after_success:
  firebase deploy --token "${FIREBASE_TOKEN}"

But the deploy fails with:

Error: Command requires authentication, please run firebase login

What am I missing?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
r-parkcommented, Oct 13, 2015

When adding my token into the Travis repo settings page, I neglected to wrap the token in quotes. Deploy is working now, thanks.

1reaction
deltaideacommented, Apr 12, 2017

@r-park You saved us a lot of headache with this comment. Thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm deploy failing · Issue #9403 · travis-ci/travis-ci - GitHub
The most likely explanation is that your token is incorrect or incorrectly encrypted. The size of ~/.npmrc should not be a concern; my...
Read more >
Customizing the Build - Travis CI Docs
Travis CI clones repositories without the quiet flag ( -q ) by default. ... We recommend using a read-only GitHub OAuth token to...
Read more >
Release uploads, but job fails with weird error - Deployment
You can try passing the -r flag (https://docs.travis-ci.com/user/encryption-keys#usage) or use the settings page to set the environment variable ...
Read more >
Issues with Deploying to Heroku via Travis-CI - Stack Overflow
I had this exact error message. In my case it was caused by invalid API credentials, and was fixed by refreshing them (per...
Read more >
Use Travis CI to build and deploy project ... - David Dong
Github Pages Generator uses the Jekyll --safe flag. The workaround is to generate the site locally and then to push the generated HTML...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found