-
Notifications
You must be signed in to change notification settings - Fork 4
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
Refresh Facebook CDN URLs on deploy #2
Comments
Using Travis CI Cron Jobs, some of the cons above would be addressed, it's possible to make a difference on regular deploy and cron:
|
The cron job is configured at https://travis-ci.org/klubbdinmamma/klubbdinmamma.github.io/settings |
Hmm, I don't want to remove and exclude Then we make _plugins/remote_facebook_photos.rb always fetch fresh data from Facebook if run via cron on Travis by looking at |
Re: the facebook app secret and |
We need to always fetch fresh data from facebook on Travis (i.e. deploying) if the repo can contain stale data. |
$ travis encrypt-file _config_secrets.yml --add
Detected repository as klubbdinmamma/klubbdinmamma.github.io, is this correct? |yes| y
encrypting _config_secrets.yml for klubbdinmamma/klubbdinmamma.github.io
storing result as _config_secrets.yml.enc
storing secure env variables for decryption
Make sure to add _config_secrets.yml.enc to the git repository.
Make sure not to add _config_secrets.yml to the git repository.
Commit all changes to your .travis.yml. |
Not a problem with Auto Cancellation: https://blog.travis-ci.com/2017-03-22-introducing-auto-cancellation |
Idea to address #1:
app_secret
fromENV
(as a fallback, if possible? to not needENV
locally (e.g. Windows))env.secure
in .travis.yml_data/facebook
_data/facebook
from gitThen every deploy would refresh the Facebook CDN URLs.
Pros:
Cons:
jekyll build
with empty_data/facebook
directory reporteddone in 74.092 seconds.
todaymight be able to continue to use jekyll configuration locallyENV
is tricky business on WindowsThe text was updated successfully, but these errors were encountered: