elementor / lokl-cli

Interactive script to launch and manage your Lokl sites
The Unlicense
66 stars 7 forks source link

Link to latest or major version #25

Closed insign closed 3 years ago

insign commented 3 years ago

I made an alias so, how can get always the latest version 5?

alias lok="sh -c \"\$(curl -sSl 'https://lokl.dev/cli-5.0.0-rc1')\""

https://lokl.dev/cli-5-latest or something like this.

BTW, add a more clear link to the main page of the github repo in the main site.

leonstafford commented 3 years ago

Thanks @insign! I've got a bit of work to do on Lokl when I next have chance, will review this then

leonstafford commented 3 years ago

Hi @insign,

I've put out rc2 recently and updated the GH main pages, along with the website.

Regarding keeping it updated to always point to the latest, I could make a /latest URL, that may be easiest for a use case like yours, what do you think?

leonstafford commented 3 years ago

We'd still want some kind of cachebusting string when you use that in such a way, to ensure that it really is the latest.

ie alias lok="sh -c \"\$(curl -sSl 'https://lokl.dev/latest?cb=$(date +%s)')\"" (haven't tested that syntax, but that kind of idea)

leonstafford commented 3 years ago

Reference for myself for later:

Passing no-cache in headers to cURL not guaranteed to ignore all caching layers.

I should also check where I'm hosting Lokl.dev now, Cloudflare Workers, so need to make sure query string cache bypassing is enabled

leonstafford commented 3 years ago

@insign I've made a link with the just released 5.0.0 to latest, so you can adjust this and some timestamp as hinted above to your alias line:

sh -c "$(curl -sSl 'https://lokl.dev/latest')"

Please let me know if any issues with it.

Also, beware the latest tag, there could be breaking changes in case you're using in certain workflows, or when a new WordPress or PHP version is added, etc.

insign commented 3 years ago

Thank you.