Skip to content

Commit

Permalink
debug template sync #1
Browse files Browse the repository at this point in the history
  • Loading branch information
intoeetive committed Jun 21, 2021
1 parent 301d5e6 commit aa027db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/feature-test.cypress.minimal.yml
Expand Up @@ -76,6 +76,11 @@ jobs:
- name: Start PHP Server
run: php -S localhost:8888 &

- name: Directory Listing
run: |
ls -lar system/user/templates/default_site/
ls -lar system/user/templates/default_site/pro.group/
- name: Run Cypress Tests
uses: cypress-io/github-action@v2
with:
Expand Down
3 changes: 3 additions & 0 deletions system/ee/legacy/libraries/Template.php
Expand Up @@ -4226,6 +4226,9 @@ public function sync_from_files()

// do it!
try {
echo '<pre>';
var_dump($data);
echo '</pre>';
$template_model = ee('Model')->make('Template', $data)->save();
$template_model->saveNewTemplateRevision($template_model);
} catch (Exception $e) {
Expand Down

0 comments on commit aa027db

Please sign in to comment.