jamesmartin / cloudflare-cache-purge-buildpack Goto Github PK
View Code? Open in Web Editor NEWPurges your Heroku application's Cloudflare cache on deployment
License: MIT License
Purges your Heroku application's Cloudflare cache on deployment
License: MIT License
Hey! great buildpack โ I am getting this error though:
bin/compile: 10: export: CF_ZONE_ID,: bad variable name
I assume the problem is the comma... but I am not sure where it's coming from, export_env_dir
looks good to me.
(Yes I have set the env vars)
Looks like this is a POST request now instead of a DELETE?
https://api.cloudflare.com/#zone-purge-all-files
Hi,
I'm running a Meteor based application.
So, aside all other config vars - who are exported well - I have a config var called METEOR_SETTINGS
, containing a bunch of vars in this format:
{
"aaa": "xxx",
"bbb": "yyy",
"ccc": {
"cprime" : "xxxx",
"csecond" : "yyy",
},
"public": {
"ddd": xxx,
"eee": yyyy,
}
}
When it comes to those vars, the script is failing.
How to fix it? Or why not just looking in the script to vars who are effectively used: CF_AUTH_KEY
, CF_EMAIL
& CF_ZONE_ID
?
Thanks
-----> Cloudflare purgeable cache buildpack... app detected
Exporting CF_AUTH_KEY
Exporting CF_EMAIL
Exporting CF_ZONE_ID
...
/app/tmp/buildpacks/dbad5bf76b26b6ad41469975f5f6c5a8144c5062c6162755e83dc78220a76364b429ca952dea13fcefef5858a70da1bda97341003c9ff4ce50d68d531066ad38/bin/compile: 54: /tmp/d20180214-70-1s9ghp7/env_exports: Kaddress:: not found
/app/tmp/buildpacks/dbad5bf76b26b6ad41469975f5f6c5a8144c5062c6162755e83dc78220a76364b429ca952dea13fcefef5858a70da1bda97341003c9ff4ce50d68d531066ad38/bin/compile: 55: /tmp/d20180214-70-1s9ghp7/env_exports: Syntax error: "}" unexpected
! Push rejected, failed to compile Cloudflare purgeable cache buildpack... app.
! Push failed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.