Helpful commands for tea/cli
Install tea/cli
sh <(curl https://tea.xyz)
Check currently installed stowed packages
ls ~/.tea
Install tea/cli
sh <(curl https://tea.xyz)
Check currently installed stowed packages
ls ~/.tea
apt update | |
# install acme.sh | |
curl https://get.acme.sh | sh | |
# install heroku-cli | |
apt install snapd | |
sudo snap install --classic heroku | |
heroku login --interactive |
console.log("%cHappy New Year from @mfts0 🎉", "color: red"); |
One of the core benefits of tea
: it's relocatable.
tea
does not pollute your system environment, everything gets "installed" in a relocatable folder ~/.tea
.
tea
can also install languages like node
and ruby
and it's dependency managers, npm
and gem
, respectively.
However, these language dependency managers install packages to global directories like ~/.npm
and ~/.gem
.
Tools from these ecosystems expect to find packages in these locations.
In this RFC, we would love to hear feedback from the community.
brew install certbot | |
# change <my.domain> to preferred domain | |
certbot certonly --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory --manual-public-ip-logging-ok -d '*.<my.domain>' -d <my.domain> | |
# add certificates to heroku | |
heroku certs:add -a eduqai-prod /etc/letsencrypt/live/<my.domain>/fullchain.pem /etc/letsencrypt/live/<my.domain>/privkey.pem | |
# may need to run with sudo |
#!/bin/sh | |
set -e | |
# NEEDS THE FOLLOWING VARS IN ENV: | |
# DOMAIN | |
# CLOUDFLARE_EMAIL | |
# CLOUDFLARE_API_KEY | |
# HEROKU_APP | |
# Download dependencies |
{ | |
"environments": { | |
"review": { | |
"scripts": { | |
"postdeploy": "bundle exec rake heroku:review_app_setup", | |
"pr-predestroy": "bundle exec rake heroku:review_app_predestroy" | |
} | |
} | |
} | |
} |