Gitlab External_URL not working

I upgraded Gitlab to the latest version using sudo apt-get update && sudo apt-get install gitlab-ce. After doing that external URLs are completely broken. I’m in Azure, and whatever was originally there was fine. After update, it doesn’t work. So I log into putty and try to change the URL using the command below.

external_url “http://mydomain.cloudapp.azure.com

That gives me error “external_url: command not found”.

So I’m at a loss how I change my URL. For some reason instead of using mydomain.cloudapp.azure.net it’s using
cx.internal.cloudapp.net

Fixed my own issue. Needed to edit the config file directly using sudo -e /etc/gitlab/gitlab.rb.

Hope this helps someone else! I’m guessing there is going to be lots of direct edits on this.