Changing Domain

Changing Domain

Invoice Ninja stores the domain for each company dataset.
This is saved when the company is first setup and cannot be changed later from the UI.
If the domain for the app instance is adjusted in the Management Dashboard, those database records need to be updated manually.

For instances which only use one domain for all company datasets run the following mysql command in a web terminal:
mysql --user=${CLOUDRON_MYSQL_USERNAME} --password=${CLOUDRON_MYSQL_PASSWORD} --host=${CLOUDRON_MYSQL_HOST} ${CLOUDRON_MYSQL_DATABASE} -e "UPDATE companies SET portal_domain='${CLOUDRON_APP_ORIGIN}'"

Otherwise adjust the SQL command above to only update the domains which need updating.

The client portal URL may also need to be updated.
This can be done from the Invoice Ninja internal settings page under the Client Portal section.