Skip to content

Commit

Permalink
Added post install
Browse files Browse the repository at this point in the history
  • Loading branch information
eerison committed Oct 26, 2022
1 parent 1cfac61 commit b5ae694
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ sonata_admin:
extra_stylesheets:
- bundles/sonatapage/app.css

# https://docs.sonata-project.org/projects/SonataPageBundle/en/4.x/reference/advanced_configuration/
sonata_page:
multisite: host
use_streamed_response: false
Expand All @@ -31,6 +32,7 @@ sonata_page:
ignore_uri_patterns:
- ^/admin\/ # ignore admin route, ie route containing 'admin'

#https://docs.sonata-project.org/projects/SonataPageBundle/en/4.x/reference/page_composer/
default_template: default
templates:
default:
Expand Down Expand Up @@ -72,9 +74,3 @@ sonata_page:
catch_exceptions:
not_found: [404] # render 404 page with "not_found" key (name generated: _page_internal_error_{key})
fatal: [500] # so you can use the same page for different http errors or specify specific page for each error

class:
page: 'App\Entity\SonataPagePage'
snapshot: 'App\Entity\SonataPageSnapshot'
block: 'App\Entity\SonataPageBlock'
site: 'App\Entity\SonataPageSite'
7 changes: 7 additions & 0 deletions sonata-project/page-bundle/4.0/post-install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* Your Page is almost ready:
1. Generate a migration for Sonata Page Database <info>php bin/console doctrine:migrations:diff</info>
2. Apply the migration generated <info>php bin/console doctrine:migrations:migrate --no-interaction</info>
3. Create your first site: <info>bin/console sonata:page:create-site --enabled --name=localhost --locale=- --host=localhost --relativePath=- --enabledFrom=now --enabledTo=- --default</info>
<comment>After you generate your site, You will see few commands to execute to have your Site ready.</comment>

* <fg=blue>Read</> the documentation at <comment>https://docs.sonata-project.org/projects/SonataPageBundle/en/4.x/</>

0 comments on commit b5ae694

Please sign in to comment.