What’s preventing you from doing this?
The URL is needed while the app is rebuilt, which is why this is necessary.
Discourse is an application, not a simple website. Assuming you used the official install instructions the process to change URL is no more complex than the installation process.