Comments (8)
I thought the update was unprotected and that anyone could initiate a site update; if it requires a secret token I have no concern.
from docs.raku.org.
Can you please elaborate, do you mean loading a new version of the doc repo while the site is still running, replacing or in the future completing the existing content, or?
from docs.raku.org.
I mean a new version of the doc repo on an already running instance of the website.
Once we're deployed and running on docs.raku.org, this will be a common use case.
from docs.raku.org.
That's something to implement, yes.
from docs.raku.org.
Wrote a prototype locally, need time to cleanup the code.
Right now the basic API is "get the git describe" of the doc repo used and an "update" command sent with a secret token, doing the "update the repo, registry and remove cache of the changed pages". So to update the version to latest what's needed is a ping to docs.raku.org/update?token=...
and it does the thing.
Can be also configured to do an update every hour/day or something.
@coke does the process looks sensible to you in a long run?
from docs.raku.org.
I don't like making this a public interface as it could be invoked by anyone and lead to a DDOS.
from docs.raku.org.
The update action is protected with a secret token (no token = forbidden), so it can lead to a DDOS as DDOS-ing every other page would, no?
from docs.raku.org.
Resolved, the docs are updated too.
from docs.raku.org.
Related Issues (20)
- Code quotes are badly readable when using the dark theme HOT 1
- Search breaks when searching for "garbage-collection" HOT 4
- TOC hover-over can be confusing on mobile HOT 1
- Search links to wrong anchor with `$*SCHEDULER` HOT 4
- search with small port has UI issues HOT 1
- <code> has too much padding?
- 404 page is "bad gateway" HOT 3
- How to start writing content? HOT 1
- Code snippets not displayed properly HOT 2
- Incomplete code snippets shouldn't have a "Run" button HOT 6
- Integration with Collection HOT 15
- Edit page link showing even on generated pages HOT 2
- No-JavaScript friendliness? HOT 1
- Code snippets are editable HOT 1
- Sort each section’s item titles in alphabetical order HOT 8
- Code snippets don't actually run HOT 1
- Add link to the test website in the README in this repo HOT 1
- Inconsistent focus in search HOT 6
- Do we have a web host yet? HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.raku.org.