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 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
       
    • By hellerdruck
      Hi all
      I need help with something. Situation: We have let's say 2'000 Files (Excel) that should be displayed (list with links) on a page. We'd need to filter these files by given Keywords or a tree structure or both. Now, I'm looking for a solution whereas our customer can synchronise the files from his local computer with the folder on the webserver. They will update and upload files on a daily basis. Therefore, it would need to synchronise rather than load the files manually in pages or repeaters. Maybe indexing would be an idea, too.
      Are there any modules for Processwire that would help achieving this? Could anyone point me in the right direction?
      Thanks in advance.
    • By iNoize
      Hello, need some help for an RealEstate project. It have to use the OnOffice to import the objects. 
      https://apidoc.onoffice.de/
       
    • By maba
      Hello,
      I need to import regularly - every 15 or 30 days - a big .xslx file into my PW installation.
      This file now has 14 columns, 5.000 rows and grows every month.
      I'll need to group, order and work with these data to:
      analyse User monthly costs analyse User costs per Asset ... User (real AD account) has to match with a PW user - I can't join to the domain - but as you can see I have some services users (start with sca_*) or no user at all. Those rows have to be assigned to a specific user, e.g. account100.
      And:
      I would like to be able to have a kind of diff function to compare User assets between this and last month (and so on) other request is to have a notification when something change for a User between actual and latest import First request: which is the best solution to store those data in your opinion? Page, Table, Repeater Matrix, ...?
      Those are very repetitive data and I think a page reference is better than to import all the data every time but I have to understand how to manage those "dynamic" groups of software (AccType Det), hardware (Asset), ... For example Price will be imported and not stored with the description because it could be change in the future and I'll not have any control on it.
      Thanks!
      User,OE,productNmr,AccType1,AccType Det,Count,Price (€),Sum,ASNA,CC,AccType Info,Asset,AccGroup,,,,,,,,,,,,,
×
×
  • Create New...