DynamicWeb Cloud
DynamicWeb10, hosted by DynamicWeb, uses shared hosting to provide the best experience, including handling SSL, milestone releases, and database backup/restore. As a result, direct RDP access to a DW10 site is generally not available.
Solutions hosted by DynamicWeb Cloud will follow a versionless deployment strategy based on milestone releases. As such, it will no longer be possible to remain on outdated versions of the application. You can read about out release policy here.
Inside DynamicWeb Administration, there will be a setting to choose which milestone tier to lock the solution to, e.g., Current + 2. This means that the solution will always run on the milestone in position 3 in the illustration below. When a new milestone is released, the one from position 2 moves to position 3, which means that the solution locked to Current + 2 will be updated to the version that was Current + 1.
R1 | R2 | R3 | R4 |
---|---|---|---|
Current | Current + 1 | Current + 2 | Current + 3 |
Examples
This example shows the release milestones at the time when Milestone 5 is released.
R1 | R2 | R3 | R4 |
---|---|---|---|
M5 | M4 | M3 | M2 |
This example shows the release milestones at the time when Milestone 8 is released.
R1 | R2 | R3 | R4 |
---|---|---|---|
M8 | M7 | M6 | M5 |
How to change release cycle
To find out which release cycle your DynamicWeb backend is using:
- Go to Settings > System > System Information
- Under File locations find the Bin location path - it will look something like
D:\dynamicweb.net\Applications\R4\10.0.33\bin
- In this case you're on the R4 release cycle
If you want to change your release cycle or application version:
- Create a file called
changeversion.txt
in thefiles\System\CloudHosting\
folder - In this file write the release cycle you want to change to;
R1
,R2
,R3
orR4
.
This change will initiate an upgrade with a delay, and the updates will be logged and can be seen using the Event Viewer.
Additionally, this function can be used to force restart an application. To do so, simply switch to the same release cycle you are already using. This action will recycle the solutions application pool.
For any questions, reach out to DynamicWeb Operations.
Database Backup
To create a database backup:
- Create a file named
backup.txt
in the\System\CloudHosting\BackupRestoreDB\Restore
folder - A .bacpac-file will be generated in the
\Files\BackupRestoreDB\backup
folder. It can take some time and you can follow the process under: "\System\CloudHosting\BackupRestoreDB\logs" - All logs are saved in the
\System\CloudHosting\BackupRestoreDB\logs
folder
To restore a database from backup:
- Upload the new database (bacpac) to:
\System\CloudHosting\BackupRestoreDB\Restore
- The database restoration process will commence, creating a log and a backup of the old database under:
\System\CloudHosting\BackupRestoreDB\backup
- It can take some time and you can follow the process under
System\CloudHosting\BackupRestoreDB\logs
- After completion, the website will recycle and check if the admin still returns status code 200 (OK)
- If everything is "ok," the old database will be removed
- If the website returns status code other than 200, a rollback will be initiated
To manually rollback the database to its state before the restore, copy the .bacpac from \System\CloudHosting\BackupRestoreDB\backup
to \System\CloudHosting\BackupRestoreDB\Restore
.
Host Headers
As DynamicWeb 10 is built on .NET Core 8, the previous method for adding host headers to a solution is deprecated.
To add domains to your Dynamicweb 10 website, you need to follow these steps:
- Change your DNS to point at the solutions server to ensure let’s encrypt can generate your SSL certificate
- Access "Edit website" and navigate to "Domain and URL"
- Add the desired domain(s) to the list:
Subsequently, a scheduler will handle the addition or removal of the domain from IIS. It is important to note that the website settings act as the master. Therefore, if a domain is added to IIS without being included under "Manage Domains," it will be removed when the scheduler executes.
Here are some additional points to consider:
- Keep in mind that the scheduler runs every 5 minutes, resulting in a potential delay of up to 5 minutes
- You can review the added domains under "Assets\System\Hostheaders," and the modification date of the files will reflect the last time the scheduler was triggered
SSL Information
When you add a domain to your website, Let's Encrypt will automatically generate an SSL certificate for the website. This process can take up to 30 minutes and will cause the site to restart. If you add multiple domains, the site will restart once for each new domain - adding many domains may therefore lead to outages due to these restarts.
If you’ve already set up SSL for a domain but later change its DNS settings away from the server and then back again, you’ll need to contact operations to reattach the SSL certificate.
Cloud SMTP
To use DynamicWeb shared SMTP mail setup (SendGrid), you need to consider the following:
- SPF
- Domain authentication
SPF
By default, DynamicWeb solutions must be pointed to smtp.dynamicweb-cms.com
using the solution SMTP-settings.
If you don’t have a SPF record, please contact the domain name server responsible, they can help you create a txt record pointing to v=spf1 redirect=spf.dynamicweb-cms.com ~all
.
If you have more than one SPF record, it should look like this: v=spf1 include: otherdomain.com include:spf.dynamicweb-cms.com ~all
Domain authentication
If you need domain authentication, please go to out domain authentication documentation and follow the instructions.
Handling incompatible add-ins
We've seen several cases where incompatible add-ins are installed, causing sites to crash when they recycle because the system can't load certain DLLs.
We monitor all websites, and if a crash occurs, our system attempts to restart the site. If that fails, we roll back custom DLLs one by one, starting with the most recently installed, until the site is running again.
When the site is available again, DynamicWeb Operations and the partner email added under Solution settings is notified - the email looks something like this:
Copying a website hosting in DynamicWeb Cloud using FTP
In this example we copy a live site to staging:
- First create a database backup:
- Log into the live site's Files-folder
- Create a file called
backup.txt
undersystem/cloudhosting/backuprestoreDB/restore
- This action generates a .bacpac file of database under
/system/cloudhosting/backupRestoreDB/backup
- Prepare staging files:
- Use your FTP account to log in to the staging solution files
- Delete all files and folders except
globalsettings.database.config
- Copy files from live site:
- Use your FTP account to log in to the live website files
- Copy all files from the live website's folder into the staging folder except
globalsettings.database.config
- Change the database:
- Move the database from
System/cloudhosting/BackupRestoreDB/Backup
on the livesite toSystem/cloudhosting/BackupRestoreDB/restore
on the staging site - This action triggers the database restore and restarts the website
- Move the database from
- Check log and confirm
- Monitor the log System/cloudhosting/BackupRestoreDB/logs until it shows "done"
- Once done, the staging website is ready with the new data and available for use
- Change primary domain:
- Go to Content > Websites and open the primary area (website)
- Remove the primary domain from the staging site Domain and URLS settings
- This is necessary to run the frontend properly