Pointing your rail gun up is best for getting out of the atmosphere ASAP, but how do you build a gun that goes, say, 20 km high into the air?
It's physically possible for us to build a 100km tall tower with current technology. (Columns formed from many highly pressurized tanks made from boron.) It's not really economically feasible, however.