Skip to content

Disable wintercms frontend (to use only backend) #205

Answered by bennothommo
YannPl asked this question in Q&A
Discussion options

You must be logged in to vote

To clarify on @YannPl's answer - if you wish to run Winter CMS with only the Backend (ie. as a self-contained application), you can make the following changes to config/cms.php:

'backendUri' => '', // Set to an empty string to use the root domain or subdomain.

'loadModules' => ['System', 'Backend'], // Remove 'Cms' to not use the CMS module.

In addition, you can remove the following line from the require block in composer.json to not download the CMS module or any updates to it:

"winter/wn-cms-module": "<version>",

Accessing your root domain or subdomain will result in the Backend login screen, or Dashboard if you are logged in, showing on load.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by LukeTowers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants