Jump to content
rajo

Continuous integration, profile management, etc. -- redux

Recommended Posts

Hi all,

I have been looking for a way to manage deployment of new sites, as well as versioning of the pw data model on sites already deployed, working with teams, etc. I've enjoyed the discussion on a few threads :

https://processwire.com/talk/topic/6707-update-live-site-from-staging-server

https://processwire.com/talk/topic/2975-team-development

https://processwire.com/talk/topic/2117-continuous-integration-of-field-and-template-changes

but so far, I have not found what I'm looking for, so I built two tools and have put them on my newbie github site for all to use and/or peruse.  I hope they are relevant to this community.  They are crude and only have been exercised in my relatively finite world of Windows/apache dev.

See  https://github.com/jeanrajotte/schlepwire and https://github.com/jeanrajotte/upgradewire

Both "apps" are not designed to be modules, integrated into pw, but rather external simple apps serving their specific purposes, possibly usable in automated build systems via curl, for example.

There's a bit of a diatribe in the upgradewire README.md about the goodness of keeping the model in version-able source files, as distinct from operating the pw admin to maintain fields and templates, even if these changes are being recorded, as mindplay.dk seems to be doing.  That's really the philosophical thrust behind these efforts.  

It's a beginning. I hope it's of interest here.

Again, thank you for this superb framework and this generous community.

Jean

  • Like 9

Share this post


Link to post
Share on other sites

Very interesting tools, especially the upgradewire. Did I understand correctly, when using upgradewire, you don't actually use the templates & fields through admin at all, but always create new xx_xx_xx.php script, that runs all the required field, template and page changes?

Share this post


Link to post
Share on other sites

Very interesting tools, especially the upgradewire. Did I understand correctly, when using upgradewire, you don't actually use the templates & fields through admin at all, but always create new xx_xx_xx.php script, that runs all the required field, template and page changes?

That's right, apeisa. While I'm learning the metamodel of templates and fields, I use the admin to create new ones, then I look in the database, in the Fields and Teamplates and other tables to see what was written by the admin, then I emulate that in my scripts.  But in the long run, once I've "mastered" the models, I only create those xx_xx_xx.php scripts and they modify the fields and templates and document the evolution of the site in a repeatable, transportable way.  

Thanks for your interest.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By zaib
      In PW I created a user 'tester' and gave the access to create edit and new. Issue is I'm unable to see 'edit' link in front of each page link and pages that i want to edit is already created.
      any help in this will be great help.
       
      Thank you.


    • By rafaoski
      I would like every new Site Profile like new REGULAR Profile to have modern support for quick creation like browser sync, minify css, js . Something on the style below:
      https://foundationpress.olefredrik.com/
      https://understrap.com/
      One profile that does not have any CSS frontend attached but has the features needed to quickly add eg pagination, comment form, or site menu something like:
      https://roots.io/sage/
      OR
      https://laravel.com/docs/5.5/mix
      I'm not very godd with js but webpack.js meybe is good for this solution ... I would like to know what advanced users in the front end think about this combination and what would be the best ...
       
    • By rayorg
      Hi all,
      I discovered Processwire a little over a week ago and have been playing around with it ever since.  Going through the tutorials, creating templates, pages, etc. and see what a nice system it is.  However, I'm led to believe that's it's not meant for user-centric sites, and by that I mean a site where you expect to have hundreds/thousands of users and expect them to log in, update their profiles, submit content, create galleries, message each other, chat in the Forum, get email notifications, etc. etc., you get the idea.  
      I was trying to update the Profile page last night by adding fields for First Name, Last Name, Profile Pic, and a bunch of others and realized that it's not that easy to do.  There's not even a template.php file for the Profile page.   Am I just not seeing it because I'm so inexperienced with the CMS?  Or, is Processwire really geared more towards sites where not much user interaction is expected?
      thanks,
      Ray
    • By benbyf
      Hi!
      I'm trying to export a large site but the export profile  module keeps timing out due to the size of the installation its trying to export (around 1500 pages - half with body content). Is there any work around or is it worth simply duplicating the site and files without using teh export profile module?
      Thanks
    • By alexmercenary
      Hi guys,
      As the title tries to explain, I have created custom fields for users on the backend like images, job title, description etc. and that works fine if you have access as a user to the 'user-admin' role but if I give team members this role if means they can access each others profile settings and update passwords.
      I would like to show the fields that have been created for users under the profile page so that the users can update their custom fields. Is this possible from the back end easily?
      Hope that makes sense.
      Any help would be greatly appreciated!
      Cheers
×
×
  • Create New...