Deploying Websites
As a general rule, we deploy websites during a phase that business is slow. For non e-commerce websites, the weekends are ideal. For e-commerce websites, the ideal time is during the middle of the week at night.
Deploying Staging to Production in SiteGround
If deploying a non-WooCommerce site
- Check and test if everything works as designed and developed
- Check desktop, tablet, and mobile views
- Ensure content is consistent with all views
- Check for misalignments
- Make sure there is no dummy content (Lorem Ipsum)
- Check for misspellings
- Make sure styling and formatting is consistent with all pages
- Check buttons if they work and properly linked
- Make sure all images are licensed and have no watermarks
- Check Copyright year
- Check that all required plugins are installed and setup
- Update out-of-date plugins
- If good to go, perform the following steps:
- Create a manual backup first before deploying
- If on SiteGround:
- go to Site Tools > Wordpress Staging
- Click Full Deploy
- If built on SiteGround but will be hosted somewhere else:
- Install the All in One WP Migration plugin + premium extension on staging and live website
- Create a backup of the live site by click on Export > File in the All in One WP Migration plugin
- Make sure the plugins are updated before you export / import
- Go to the staging branch of the website > All in One WP Migration in the WP dashboard of the staging site > Export > Export to file > Download
- Go to the dashboard of the live site > All in One WP Migration > Import > Import file
- Quality Check
- Check if content, images, css, and other scripts are loading properly
- If on SiteGround
- Perform Search and Replace if not:
- Site Tools > Search and Replace > Select Installation (live site) >
- In Search String, add staging URL
- In Replace string, add the production site URL
- Hit Search and Replace and test. Delete browser and server cache if necessary.
- If hosted somewhere else, check manually.
- Clear cache as necessary
- Server cache
- Browser cache
- Divi cache
- Update forms:
- Make sure the email address is the designated recipient
- Add Google Recaptcha
If deploying a WooCommerce site
- Check and test if every thing works as designed and developed
- Migrate WooCommerce activities
- Check the latest activities in the staging site and compare with the production site
- Export all activities from production and import to staging
- Review that all activities are properly migrated
- Quality Check
- Check if content, images, css, and other scripts are loading properly
- Perform Search and Replace if not:
- Site Tools > Search and Replace > Select Installation (live site) >
- In Search String, add staging URL
- In Replace string, add the production site URL
- Hit Search and Replace and test. Delete browser and server cache if necessary.
- Test by going through the whole checkout process
- Use a coupon code with 100% discount to waive off charges
- Use your onevector.net email address
- Use a fake address generator to get an address within the website's service area
If deploying an Odoo website
- Check and test if every thing works as designed and developed
- Login to Odoo > Go to Databases > Locate the database you are deploying
- Click the gear icon beside the database name
- Click Domain Names in the dropdown
- Select Use My Own Domain if there is an exiting domain name. Otherwise get a new domain name (rare cases)
- In the Use Existing Domain Name window, enter the domain name and click verify
- Login to the domain name's DNS settings.
- Go to the DNS settings
- Create a CNAME record
- Point the domain name to the database name
- Example: www.onevector.net to ovdco-erp-03.odoo.com
- Where the domain name will be the actual domain name url and the database name is whatever is use in Odoo
- If you want to use the naked domain (e.g. yourdomain.com), you need to redirect yourdomain.com to www.yourdomain.com.
- Go back to Odoo and hit "I confirm it's done" button
- Depending on the domain registrar, propagation may take effect in two up to 48 hours
- Check propagation progress occasionally by using tools like https://dnschecker.org/