Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#13 Today 05:31:34
Re: automatic Config.php integration
TheEric wrote #340808:
I created a shell script to install it, but it stops at that spot. At some point I’ll just create my own install script since we’re a touch boomer here.
Maybe this thread has given you some pointers, then? I was curious and tried out the automatic CLI installation for you, and as shown above it can take you the whole way through to a ready-to-use installation in seconds. The only real difference to what you mentioned at the top of the thread is that you prepare a setup.json file (or however you wish to call it) rather than a config.php as your starting point.
The above script is a proof of concept and you can flesh it out, as Pete has for the live demos. Potentially, you can bring in initial articles, prefs (sections, categories), plugins, and a public/admin theme of your own for your own custom start configuration. You could simplify it too by copying from a pre-prepared core txp files folder on your system rather than pulling from git. Steps 1-5 and some of the config variables could then be replaced by a single copy folder step.
Let us know how you get on and perhaps share your solution.
TXP Builders – finely-crafted code, design and txp
Offline
#14 Today 08:16:31
Re: automatic Config.php integration
TheEric wrote #340808:
I’ve been installing, nuking, and reinstalling as I work on a few of my projects. Having to go through the install is frustrating when I want a clean install. I created a shell script to install it, but it stops at that spot. At some point I’ll just create my own install script since we’re a touch boomer here.
If I’m reading this correctly, you may well be better off with a known-good backup of files + database that you can restore outside of the Textpattern install path. Essentially: run the install for a blank site (choose Zero theme if you want minimal extra stuff installed), tweak it to your baseline requirements, and then back it all up so you restore in a few seconds in a shell script.
The demo site auto install stuff runs completely non-interactively, and has done for many years, so what you want to do is possible for sure.
Offline