pigeonflight
(David Bain (Will Theme Plone Sites))
June 8, 2018, 11:55am
1
Nothing fancy here. This falls under the category of "easier to explain to my team".
It makes use of the wonderful plonetheme-upload theme upload/update utility, created by @datakurre
I'm using this as "proof of concept" for something that could be added to the, more official, plone-cli project.
README.md
Currently this only provides ``plu-up``, a small utility, written in bash, for managing the upload of themes to a Plone site. It depends on ``plonetheme-upload``. The goal is to make it as easy as possible to update a theme on a plone site from the commandline.
Using the prefix "plu-", provides a short, and hopefully inituitive, namespace for "plone command-line utilties". I hope that the plu- namespace can be used for other utilities. This could also be thought of as a proving ground. If a plu- utility makes sense, we'd try to eventually roll it into the plone-cli project.
I needed to integrate some ssh-tunnelling "magic" (documented here: https://stackoverflow.com/questions/2241063/bash-script-to-setup-a-temporary-ssh-tunnel). Hopefully this is useful to others.
Installation
-----------------
Install the dependency (we assume you know how to work with npm):
This file has been truncated. show original
plu-config
export plone_ssh_user=plone
export plone_server="example.com"
export plone_target_port=8080
export plone_local_port=8081
export plone_instance_path=test
plu-up() {
echo "------------ setting up tunnel";
ssh -M -S plone-ssh-ctrl-socket -fnNT -L $plone_local_port:localhost:$plone_target_port $plone_ssh_user@$plone_server;
echo "------------ uploading theme";
This file has been truncated. show original
1 Like