In development, I would like to replace localhost:3000
to something like "domain.com:3000" or "domain.com".
I can achieve this by adding alias to /etc/hosts file, for ex:
# /etc/hosts
127.0.0.1 domain.com
^^^ this one works, i can now view my site locally using domain.com.
The problem is that rails itself still uses localhost:3000, for example when generating urls via router methods. I feel that there should be some config for this.