Textpattern CMS support forum

You are not logged in. Register | Login | Help

#41 2017-11-25 00:23:54

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,097
Website

Re: Textpattern CMS demo site

gaekwad wrote #307979:

Until now the Textpattern demo site has been limited to the most recent release/production version. I am very pleased to announce I’m adding a subdomain for the current in-development version direct from GitHub. This is an early alpha announcement to people subscribing on this thread, I’m hoping to overhaul things in the coming weeks as time permits.

For the meantime, and this link may change so please don’t rely on it, the link to use is

(https or http).

Notes:

  • the dev demo site pulls the latest software from GitHub every three hours
  • the login credentials are the same as the production version (see here for username/password)
  • there are no images or files, they are on the to-do list
  • everything is nuked and rebuilt from scratch every three hours
  • …it uses the same awkward Bunch O’ Bash© as the release version site

This new development is possible thanks to work undertaken by makss in the past few weeks. Makss has added a CLI option to install Textpattern, and it’s fantastic.

The install process for 4.7 (subject to change, it’s still in development) can be automated from a command line. To put this in perspective, the script I wrote to build the demo every three hours tears down the previous install, flattens the files and database, grabs the latest source from GitHub, runs the automated install according to settings in a JSON file, and builds the new site in about 11 seconds. I am certain I can make this even faster, but it’s blisteringly fast compared to walking through the GUI process.

I’ll overhaul and tidy the demo server in December, but you can trial the development version right now without setting up a development environment.

More soon. Thanks for reading.

That is sooooo impressive. CLI rebuild. wow! that whole process is begging for a great How-To and/or blog post. The news of this ability needs wide distribution!


…. texted postive

Offline

#42 2017-11-25 09:08:11

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 641
Website

Re: Textpattern CMS demo site

Very interesting ! Can you give us a short tutorial about installing TXP automatically?

Offline

#43 2017-11-25 12:35:15

gaekwad
Member
From: North Cornwall, UK
Registered: 2005-11-19
Posts: 2,019

Re: Textpattern CMS demo site

jpdupont wrote #307986:

Very interesting ! Can you give us a short tutorial about installing TXP automatically?

Absolutely. I can flesh this out when I have a bit more time (Black Friday/Cyber Monday weekend is always busy for me monitoring client servers). Before I start, some notes:

  • This functionality is in the development version of Textpattern at GitHub, which by its nature is subject to change.
  • The route I took was figured out from me groking commits by makss, and some trial & error (mostly because I’m rusty at Bash and I’ve been away from Textpattern for a while. There are potentially more efficient ways of doing this.

The workflow comprises:

  • Create a JSON file with setup details (behind the scenes, you don’t want this leaking out). Use the template below and fill in the blanks. site entries are optional (can be left as-is), mysql and user entries are required:
{
    "site": {
        "lang": "en",
        "siteurl": "",
        "theme": "",
        "public_theme": "",
        "datadir": ""
    },
    "mysql": {
        "user": "",
        "pass": "",
        "host": "localhost",
        "db": "",
        "table_prefix": ""
    },
    "user": {
        "realname": "",
        "email": "",
        "name": "",
        "pass": ""
    }
}
  • Obtain the dev version of Textpattern
git clone https://github.com/textpattern/textpattern.git
  • Copy or move the files into your preferred webroot. You can safely ignore the git-related files.
  • Make sure textpattern/config.php is writable by the user you’re using, then run php from the command line:
php /var/www/html/textpattern/setup/setup.php --config="my-setup-config.json"

The output will tell you what’s happening, and if all goes well you should see:

Checking connectivity... done.
[OK]	Connected
[OK]	Using devdemo. (utf8mb4)
[OK]	That went well!

The reference to devdemo is for my server, yours will be different.

Offline

#44 2017-11-25 13:23:13

jpdupont
Member
From: Virton (BE)
Registered: 2004-10-01
Posts: 641
Website

Re: Textpattern CMS demo site

Thanks :))

Offline

#45 2017-12-01 17:42:37

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 1,097
Website

Re: Textpattern CMS demo site

Not sure thsi is the correct place to ask….but.

Is there a way for our Textpattern installations to let us know when a new version is available once we are logged in as Admin?

For example at the bottom of the Admin login area the footer says:

 (4.6.2) · Logged in as admin

But if i was running 4.5.7 it would say:

 (4.5.7) -  latest  (4.6.2) · Logged in as admin

Last edited by bici (2017-12-01 17:43:04)


…. texted postive

Offline

#46 2017-12-01 18:31:57

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 7,800
Website

Re: Textpattern CMS demo site

bici wrote #308086:

Is there a way for our Textpattern installations to let us know when a new version is available once we are logged in as Admin? For example at the bottom of the Admin login area.

Short answer: no.

Long answer: no, as it ties up too many resources and extra processing to query the remote server every so often.

The information is on Diagnostics, and it’s probably going to stay there I think.


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB