Assuming you've followed the steps in the [guide to setting up development](https://collab.codidact.org/posts/280451/280452#answer-280452), changing that to a production environment is relatively easy.
* Check your production configuration file (`config/environments/production.rb`) and make sure that it works for you. I can't tell you what's right here - it depends on your setup. The file is documented, so run through each option and make sure it's set to what you need.
* Make sure you've run `rails assets:precompile` before booting your server, and make sure it's part of your deploy process.
* Check your communities table. The community that you want to serve from a public web address will need it's `host` field updated - if you're serving from `test.example.com:3000` then that's what the `communities.host` value should be.[^1]
[^1]: If you try to access your community and get the error saying "No Community record found for Host="`test.example.com`", you've set the field wrong - it should be exactly what that `Host=` value is.