Closed marcellodesales closed 8 years ago
Hi!
First things first, this repo is dead. The real repo is here: https://github.com/badges/shields/.
Is there anything I need to run the server using Docker?
Hopefully none? The latest change to the dockerfile was here: https://github.com/badges/shields/commit/5335c872a0eebd1d090afcbd75d31f7720247b6e.
What's the secret module that's missing?
The secret.json file includes secrets required by some vendors (eg, GitHub will put restrictions in rate limiting unless you are identified by a secret token).
Something like this will give you the list of keys:
cat server.js | grep 'serverSecrets\.' | sed 's,.*serverSecrets.,,' | sed 's,[^a-z_]*$,,' | sort | uniq
Where's it required?
$ git grep 'require.*secret.json'
server.js: serverSecrets = require('./secret.json');
suggest.js: serverSecrets = require('./secret.json');
How to generate it?
By painstakingly going through each vendor, reading up on the issues related to their integration to shields, creating a dev account for each one, and generating tokens.
If you don't care about those vendors, you can just ignore that, the server will run even without those tokens. Alternatively, you can echo '{}' > secret.json
and be done with it.
Thank you @espadrine... I will verify the other repo!!! I did not pay attention :S
@espadrine Worked like a charm!!! Thanks a lot!
Hi there,
We have a network restriction to reach to shields website, so I'm trying to start the server using docker... I'm getting an error while running the built image... The error is:
Questions
secret
module that's missing?Here's what I did...
Building
Running