People do it many ways — the two most common are to setup a repo in in one of the following directories:
/var/convesio
/var/convesio/wordpress
Your SFTP user should have rights to be able to create it in either location, if not just let us know and we can initialize it for you in either one, then you can manage it from there.
You will need to exclude the following files in the /var/convesio/wordpress
folder from your repo:
convesio.php
wp-config.php
wp-convesio.php
You will also need to ensure changes from the wp-config.php
on your development environment is appended to the end of wp-convesio.php
in your Convesio environment. wp-config.php
in our environment is subject to arbitrary change by the platform and should never be modified. Any additional parameters you need to define in the define in wp-config.php
should be added to the wp-convesio.php
instead.
We also install a mu-plugin
that needs to be excluded from the repo, to provide the control panel jump to wp-admin. This is included in the sample file attached to this article.
Our platform-caching
plugin and the object-cache-pro
plugin, if used, should also be excluded from the repo. You should update these from production wp-admin regularly, or set them to auto-update.
SSH ACCESS: we recommend generating an ed25519 ssh key (ssh-keygen -t ed25519)
and adding the public key to /var/convesio/.ssh/authorized_keys
— then using that to login rather than the password. Also, rather than using the SFTP host server listed in the control panel, use the IP of the node that hosts your site, which you will need to get from our support team.
The .gitignore
sample file is based on the repository living in /var/convesio/wordpress
*~
.DS_Store
.svn
.cvs
*.bak
*.swp
Thumbs.db
.vscode
# wordpress specific
wp-config.php
wp-content/uploads/
wp-content/blogs.dir/
wp-content/upgrade/*
wp-content/backup-db/*
wp-content/advanced-cache.php
wp-content/wp-cache-config.php
wp-content/cache/*
wp-content/cache/supercache/*
wp-content/debug.log
# Convesio-specific
convesio.php
wp-config.php
wp-convesio.php
wp-content/object-cache.php
wp-content/advanced-cache.php
wp-content/mu-plugins/convesio-login.php
wp-content/plugins/object-cache-pro
wp-content/plugins/platform-caching
# large/disallowed file types
# a CDN should be used for these
*.hqx
*.bin
*.exe
*.dll
*.deb
*.dmg
*.iso
*.img
*.msi
*.msp
*.msm
*.mid
*.midi
*.kar
*.mp3
*.ogg
*.m4a
*.ra
*.3gpp
*.3gp
*.mp4
*.mpeg
*.mpg
*.mov
*.webm
*.flv
*.m4v
*.mng
*.asx
*.asf
*.wmv
*.avi