SSH into the primary clouds as the cXXXX user, then run the following commands:
> cd www
> sh -c "$(curl https://modx.co/scripts/install.sh)"
> source ~/.profile
In the primary cloud run the following commands
> cd ~/
> git clone https://github.com/modxcms/teleport.git
> cd teleport
> git branch -v
If you get this error on the git clone: [email protected]: Permission denied (publickey). fatal: Could not read from remote repository.
Then, run git config --global http.sslCAinfo /etc/ssl/certs/ca-certificates.crt
and try the git clone again.
If you are MODX 2.x the branch should be “1.x”. If you are on MODX 3.x the branch should be “2.x”.
If it is using the wrong branch run the following commands:
> git fetch origin
> git checkout 2.x
Otherwise continue with the installation by running:
> composer install
> ./bin/teleport --action=Profile --name="Teleport" --code=teleport --core_path=/home/www/core/ --config_key=config
Choose your extract template from the /tpl/
(e.g. elements.tpl.json) directory of teleport and run it like so:
> ./bin/teleport --action=Extract --profile=profile/teleport.profile.json --tpl=tpl/complete.tpl.json
Once complete your teleport file will be available in the /workspace/
directory of teleport.
Choose your inject file from the /workspace/
directory of teleport and run it like so:
> ./bin/teleport --action=Inject --profile=profile/teleport.profile.json --source=workspace/teleport_complete-221129.1615.09-3.0.1-pl.transport.zip