Welcome ,
  1. Home
  2. Auto Sync PageCarton Core from Another Git Repository

PageCarton Documentation



Interested in coding widgets, classes, or methods? Check out the Code section!

Auto Sync PageCarton Core from Another Git Repository


Image

From PageCarton 1.8.71, it is now possible to sync one's PageCarton core with a third-party repository. In some cases, it is useful to want to connect PageCarton to one's own fork of the PageCarton core from Github. You can do this in few easy steps:

  1. Get the direct link to the ZIP archive of the PageCarton core you would like to sync with. If you are using Github, your link should be like "https://github.com/pagecarton/pagecarton/archive/1.9.x.zip". For example, mine is "https://github.com/ayoolafalola/pagecarton/archive/1.9.x.zip" because that is the direct link to the ZIP file of the git branch I want to work with.
  2. Edit your "pagecarton.json" configuration file in the web root and update the "repository" option to the link to the ZIP archive. You can create your own "pagecarton.json" into the web root if you don't have one; a sample "pagecarton.json" file is located in "pagecartion/core/local_html/" directory, you can copy that to the web root to get started. When you are done, the configuration file in your web root should look like what is in the screenshot below

  3. Run the "Application_Backup_GetInstallation" widget by going to example.com/widgets/Application_Backup_GetInstallation?pc_recreate_installer=1 on your browser. Don't forget to change "example.com" to your own domain name or "localhost" if you are working offline. This is the manual way to sync your core with the set repository. You may need to log in if you are not logged in as an admin

  4. If you would like the server to sync the core immediately you push changes to Git, set up a web hook on your github account to always call example.com/widgets/Application_Backup_GetInstallation?pc_recreate_installer=1 whenever changes are pushed.


     
  5. If all is set, hook should be listed. You can make this call as many times as possible.

 

 

← Previous "PageCarton Admin Panel""Different Installation Methods" Next →


 

Similar article

 

Installing PageCarton via Composer Photo

Installing PageCarton via Composer

If you have Composer installed on your computer, you can easily get PageCarton up by running the following commands on your command line.  # download PageCarton via composer composer create-project pagecarton/pagecarton --prefer-dist -s dev # go into the project cd pagecarton # set up your web root cp -r pagecarton/core/local_html/* html # start your development server cd html && php -S localhost:8001 With this, you do not need to install any other server. Easy, ...

article
 

 

Setting up PageCarton via Docker Photo

Setting up PageCarton via Docker

PageCarton now has a few files in its GitHub repository that helps to set it up on Docker easily. If you are familiar with Docker or a newbie, you should be able to get started with PageCarton on Docker without stress.  The beauty of working with Docker is that you do not have to worry about setting up your server or configuring it. We have created a few settings in the Docker file to ensure the system will be using a compatible server to run your PageCarton in its container...

article
 

 

Steps in Creating a PageCarton Website Offline Photo

Steps in Creating a PageCarton Website Offline

Creating a website has now been made easy with the use of Pagecarton, it's not necessary to know much about coding. If you have your contents ready, and the style of how your website wants to look, your website creation with pagecarton is as easy as ABC.  For this tutorial, we will be using an offline server called LOCALHOST. After installing your favorite offline server, pagecarton will be needed to install on it so that we can access the pagecarton admin panel locally. If you do...

article
 

 

Steps in Creating a PageCarton Theme Photo

Steps in Creating a PageCarton Theme

Creating a PageCarton theme isn't actually a difficult task, but just that it might involve a long process and a little bit of how programming codes work. The main purpose of having a PageCarton theme is to ensure other users get an easy and fast customization of their own personal websites with the use of the themes(which serve as a template) created by other users. Getting an HTML Template File Download your desired already-designed template file. These kind of templates are most ...

article
 

 

HTML Syntax & API for Embedding Widgets Photo

HTML Syntax & API for Embedding Widgets

In an update to PageCarton that was available from August 2020, we added a new way to create and customize PageCarton Themes. In addition to existing ways of creating and customizing themes, you can now customize themes completely from the raw HTML code section using your favorite code editor. Before now, most of the theme layout design functions has been limited to the visual Page Editor in the PageCarton Admin Panel, we noticed that this has proved to be dif...

article
 

 

PageCarton Admin Panel Photo

PageCarton Admin Panel

The PageCarton Admin Panel is the default control center of PageCarton. While PageCarton is built with privileges from ground up, which allows to customization even from the frontend, the Admin Panel now serves as the control center where all the administative functions can be found in one place. The Admin Panel is a component of PageCarton system that provides the ability to view and change application settings. It consists of a set of widgets that include adding or removing fun...

article