Jump to content
dragan

Export Site Profile incl. ready.php ?

Recommended Posts

Is it by design that a site/ready.php is not included when creating a new site profile? Is it possible to include it with a hook? Or are there any security thoughts? (I don't want to redistribute it in public, it's just so I have my own boilerplate)

Share this post


Link to post
Share on other sites

Did you think of packing the content of ready.php in your own boilerplate module?

Share this post


Link to post
Share on other sites

Ryan's ProcessExportProfile module includes ready.php in the exported files. Based on your other comment, I think there may have been an error during the export process because I frequently install profiles exported by this module without any problems.

  • Like 2

Share this post


Link to post
Share on other sites
1 hour ago, Robin S said:

Ryan's ProcessExportProfile module includes ready.php in the exported files.

Can't confirm this. Just moved 2 sites/profiles from local to another instance. Neither of them had ready.php, init.php or finished.php in the created profile ZIPs.

Share this post


Link to post
Share on other sites
9 minutes ago, wbmnfktr said:

in the created profile ZIPs

I always use the "Server directory" option because I'm using the profiles locally and so there's no point in an extra zipping/unzipping stage. So could be a bug with the ZIP export option.

  • Like 3

Share this post


Link to post
Share on other sites

Ok, this is a very good detail. I always use ZIPs as I push them - as they are - to the new system.

I will try the Server Directory tomorrow and let you (all) know if this makes a difference here on my side.

  • Like 1

Share this post


Link to post
Share on other sites

Just to clarify: I didn't use the ZIP file, I took the generated folder (Server Directory method), since I was only working locally.

Share this post


Link to post
Share on other sites

I tried the module after reading this thread, using Server Directory method, and had a problem because ready.php *was* included. The installer complained about a hook I use to process submissions to a FormBuilder form: "Call to a member function addHookAfter() on null ", where the call is

$forms->addHookAfter('FormBuilderProcessor::render', function($e)

Temporarily renaming ready.php in the profile and resetting it after installation got me where I wanted to be. It's very useful to install a ready-made set of modules like this.

  • Like 1

Share this post


Link to post
Share on other sites
42 minutes ago, kp52 said:

It's very useful to install a ready-made set of modules like this.

If that's your goal you should maybe have a look at PW Kickstart, especially this reply:  https://processwire.com/talk/topic/18166-processwire-kickstart/?do=findComment&comment=187284

It's a lot more flexible than site profiles (spoiler: I don't like them 😋)...

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

Just to let you know:

2019-09-03-133218_389x246_scrot.png.cbfcaf480e6fcb46385edda86f22a71c.png

Server directory option includes the ready.php here on my setup.

Share this post


Link to post
Share on other sites

Note from moderator: since this is not a support thread for a module, I'm moving it to the "Themes and Profiles" area of the forum instead. Thanks!

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 AndZyk
      Hello,
      we have many projects as pages containing images inside regular image fields and repeater matrix elements. Now we would like to organize our assets.
      ProcessWire saves assets with id as folder name and makes separate folders for repeater matrix elements.
      Is there a way to collect all assets of one page and export them in a folder with the page name/title?
      I think I could achieve this by using the command line wget for this website or maybe by a hook. But maybe someone has done this before. 😉
      Regards, Andreas
    • By Vineet Sawant
      Hi,
      I'm trying to import some heavy data into Processwire, but I'm not sure what would be the best way to do it.
      Usually I use CSV to Pages plugin, but this time the data is too heavy(~40k rows with 10+ columns of excel sheet), thus this plugin can't help.
      I also tried Tasker plugin but I can't seem to go through the setup itself, it requires some template setup but I'm totally clueless about how to do it, so that plugin is not of any use either.
      I wanted to know from you guys how you do it and in future what would be the best way to migrate thousands of rows of data in to PW.
       
      Thanks.
       
       
    • By hellerdruck
      Hi all
      I need to export all the texts from a website to a translation company (as json or csv or txt...). How can this be done? Of course manually, but this website is huge and it would take me years...
      Also, as a second step, importing the translation ...
      Any ideas anyone? Tutorials? Plugins?
      Thanks for your help.
    • By Rodd
      Hi everyone!
      I have a website in a production environment and I want to duplicate it in a local environment. I exported the content of the website (with the 'Site Profile Exporter' module) but I cannot use it actually. I've got an issue with the database. I imported this one in MAMP then.

      I also exported the pages (with the 'ProcessPagesExportImport' module), but I cannot import it to my local website because the fields don't exist. So I created this fields, but I have this error :
      How can I use the elements that already exist and are presents in my database? How can I duplicate correctly the templates, fields and pages?
      Thanks by advance
      PS: Sorry if my english is bad
       
×
×
  • Create New...