You can't go wrong using "it" here, both with cities and with ships. However, sometimes such things as cities or ships can be personified, which elevates them somewhat over all the other neuter items in the world. That may also happen with abstracts such as fate (which implies the goddess of Fate) or with language ("English as she is spoke" [sic]).