-
Notifications
You must be signed in to change notification settings - Fork 26
Configuration and getting started
There are a few settings you will need to configure in the PuckWeb project web.config file.
- connection string
you will need to point the connection string named PuckContext to an empty sql server database
- setting initial user email and password
you will need to modify the InitialUserEmail
and InitialUserPassword
AppSettings. this will be used to setup the initial admin user for Puck.
you will need to run update-database
in the package manager console targeting the puck.core project to create the database. the seed method in puck.core.Migrations.Configuration
will use the InitialUserEmail
and InitialUserPassword
settings you configured to create the initial user and add all CMS roles to the user.
- if you want to enable content notifications (ie edit, publish, delete, move) then you need to uncomment the
<smtp>
element:
<mailSettings>
<!--
If you need Puck to send out system mails (like content notifications),
you must configure your SMTP host here - for example:
<smtp from="puck@puckcms.org">
<network host="" userName="" password="" port="25" />
</smtp>
-->
</mailSettings>
and set the host
, userName
and password
attributes.
- if you plan on storing your images in azure, set the
AzureImageTransformer_AccountName
andAzureImageTransformer_AccessKey
AppSettings. to minimise customisation, leaveAzureImageTransformer_ContainerName
set as "media".
here are the three lucene related app settings:
<add key="LuceneIndexPath" value="~/App_Data/Lucene{machinename}"/>
<add key="LuceneAzureIndexPath" value="D:\local\Temp\Lucene"/>
<add key="UseAzureLucenePath" value="false"/>
the LuceneIndexPath
app setting determines the location of the Lucene index. you can add the token "{machinename}" - for example: ~/App_Data/Lucene{machinename}
to your path and this will be replaced with a server specific identifier. this is useful for environments with shared file system where multiple servers/workers are sharing the same disk - each worker will get a different lucene index and this will prevent file lock issues.
azure is one such environment and you can set the UseAzureLucenePath
app setting to "true" when working in azure to use a temporary file location local to each worker instance. because azure temp file is local to each worker and not shared, you should not add the "{machinename}" token to LuceneAzureIndexPath
.
once you have the website setup in IIS, you can go to the admin section. the admin path is /puck/
and you will need to log in using the InitialUserEmail
and InitialUserPassword
you configured in the web.config.
the first thing you'll want to do is set your languages by visiting the settings section of the backoffice. you'll need to do this before creating any content.