# Cleanup previous versions (if installed)
brew uninstall roots/tap/trellis-cli
# Install trellis cli
brew install roots/tap/trellis-cli
# Upgrade
brew upgrade --fetch-HEAD roots/tap/trellis-cli-dev-
-
Save koraysels/c7bd30b3ba0035bc85ff621f2d77d6e9 to your computer and use it in GitHub Desktop.
change your TLD or setting changes in yaml do this
https://roots.io/guides/updating-development-tld-from-dev-to-test/
encypt passwords
https://roots.io/docs/trellis/master/vault/#steps-to-enable-ansible-vault
$ cd trellis
$ ansible-vault deveerman.group_vars/all/vault.yml group_vars/development/vault.yml group_vars/staging/vault.yml group_vars/production/vault.ymlProvision server with ssh password instead of ssh keys
$ ansible-playbook server.yml -e env=production -u root --ask-pass
if ipify fails
add this to all/main.yml
ssh_client_ip_lookup: false
letsencrypt_contact_emails:
- [email protected]
ip_whitelist:
- "{{ (env == 'development') | ternary(ansible_default_ipv4.gateway, ipify_public_ip | default('')) }}"
- 81.82.231.64 # your ipsync db from prod to dev etc..
SETUP wp-cli.yml:
https://roots.io/guides/using-wp-cli-aliases/
Setup scripts:
sometimes you need this dunno why it gets removed;... :(
$ ansible-galaxy install -r galaxy.yml --ignore-certs
if you keep having issues check this answer: https://stackoverflow.com/questions/63534262/how-to-fix-following-ansible-galaxy-ssl-error
if you get errors with ansible ssh extra args make sure you use ansible v2.10
$ pip3 install -I ansible==2.10
##when php 8 keeps fucking shit up
ssh into vagrant
sudo update-alternatives --set php /usr/bin/php7.4
WHen you get python warning!
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 1
Import database
put db.sql inside the local website directory
with scripts :
With sequel pro :
set key file to the
<project_filder>/trellis/.vagrant/machines/default/virtualbox/private_keyFIrst enable ssl 👍
SETUP SSL self signed for local
https://roots.io/docs/trellis/master/ssl/#configuration