Migrate to another domain/hosting

Always backup your files and database before doing anything.

Enable debug mode

Before copying/moving the files, in your existing installation, enable debug mode in the main index.php file as explained here .

This will help to see the errors in case you are having problems or receiving 500 errors after the migration; the error messages will help you easily to resolve the issue.

Copy/Move files and database

After you finish the first steps go to application/config/migration.php and

$config['migration_enabled'] = false;
$config['migration_enabled'] = false;
$config['migration_enabled'] = false;

To

$config['migration_enabled'] = true;
$config['migration_enabled'] = true;
$config['migration_enabled'] = true;

After you enable the migration, you need to replace any links contained in the CRM with your old base URL.

Go to http://yournewbaseurl.com/migration/make?old_base_url=http://myoldbaseurl.com/

Replace http://myoldbaseurl.com/ with your old base URL where SudoWorkspace was installed. (the same as it was in application/app-config.php)

Total links replaced will be shown after success check. If is a new installation and doesn’t have a lot of data don’t get confused if the total replaced links show zero.

Don’t forget to turn back migration_enabled to false

That is all that needs to be done. If files were copied correctly, the database was imported correctly and files were modified/checked correctly, SudoWorkspace will now function on the new URL.

Disable debug mode

If you enabled debug mode in the first step, in your new location, disable debug mode by setting the ENVIRONMENT constant to production .

define('ENVIRONMENT', 'production');
define('ENVIRONMENT', 'production');
define('ENVIRONMENT', 'production');

Cron Job Migration

When you are migrating to another domain or server, you must migrate/re-configure the cron job too on your new server.

Click here to read more about how to configure your cron job if you are not familiar with it.

Also, if you are migrating to another server, make sure you remove the old cron job to prevent making 404 requests for no reason.

Webhooks migration

If you have configured any webhooks for Stripe , make sure you update the webhooks in the Stripe dashboard to be compatible with your new domain name.

How to export the database from phpMyAdmin?

Click Export on the top middle section shown in the navigation and then click Go .